Git – GitHub – Using Git

So we have finally made the move to Git.  Albeit slowly.

git add .

Add files to git

git commit . -m “this is my commit comment, I have made changes to …”

Commit files and changes to your local git repo

git push origin master

Actually upload your changes to master (Git speak for trunk in SVN)

git branch -b <branch name>
#e.g git branch -b create_user

This will create a new branch named <branch name>, you will need to follow up with the following to push the branch to remote.

git commit -am “New branch”
git push origin <branch name>

Which will create a new branch on the remote

Posted on May 18, 2009 at 10:34 pm by Jordan Carter · Permalink
In: Web Development · Tagged with: ,

Leave a Reply