Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6077303
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T10:42:21+00:00 2026-05-23T10:42:21+00:00

I’m a single developer that has always just developed over FTP to a development

  • 0

I’m a single developer that has always just developed over FTP to a development server and then moved the files into production when ready. I’ve been interested in using git and GitHub for quite a while now, and I’ve finally got a good excuse now with a new project I’m starting. However, it seems tedious to have to do:

git add file1.php
git add file2.php
git commit -m 'updated file1 & 2'
git push origin master

Then after that is in the repo on GitHub, SSH into my server, go to the correct directory, and do:

git pull

each time I make any change to the code. This is apposed to editing in something like Coda and then just clicking command+S.

Is there a better (maybe more automated) way of doing this? I know there is a GitHub for Mac app which is quite nice and helps with the first part, but I still have to login to SSH to update anything, which can get tedious after a few dozen updates in an afternoon.

I’ve also seen that I can add a post-hook, so I could call a PHP script to execute the git pull on each commit, but I feel like there could be some security issues with that, and not to mention the issue with that script failing since it can’t enter the passphrase.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T10:42:21+00:00Added an answer on May 23, 2026 at 10:42 am

    I strongly suggest you read the ProGit book http://progit.org/

    No, there are much faster ways of doing this.

    Once you have the files added, you can simple git commit -a -m "Change descriptions"

    In order to add the files, you can git add . which will recursively add all non-ignored files.

    If you have a tracking relationship set up with your branches, all you need to say is git push. Only if someone else makes a change do you need to git pull

    There are of course many IDEs which will help manage git, and git guis of various breeds.
    https://git.wiki.kernel.org/index.php/Interfaces,_frontends,_and_tools

    But really there are only a handful of commands you need to know to do it from the command line.

    • Everyday commands

    These commands you will be using every single day

    git pull --rebase    # Getting changes other people made.  Using rebase is my personal preference
    git commit -a -m msg # Committing your work
    git push             # Sharing changes with others
    git status           # Finding out what you have not committed/pushed
    git diff             # Finding out what changed
    
    • Occasional commands

    These commands you will use only on setup or rarely

    git init                 # Set up a new git repo
    git clone URL            # Set up a git repo from the master source
    git add <file/directory> # Mark a change specifically for commit
    

    I would like to reiterate that git is not a web deployment system. However, if you are trying to do something like that, some people have had success with http://toroid.org/ams/git-website-howto

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I've got a string that has curly quotes in it. I'd like to replace
I'm trying to create an if statement in PHP that prevents a single post
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
I want to count how many characters a certain string has in PHP, but
Basically, what I'm trying to create is a page of div tags, each has
I have a French site that I want to parse, but am running into
I need a function that will clean a strings' special characters. I do NOT

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.