An opensource movie organizer

Useful git commands…

I always forget some git commands. I’ll add them here little by little when needed….

commit

git commit --amend

Commit to many files:

git reset --soft HEAD^      (or HEAD~<n> for <n> commits)
git reset HEAD <unwanted_file>

pull

git pull <repo> <branch> --rebase

Manage

Create a new branch and go on it:

git checkout -b <branch_name>

 

or, in 2 steps:

git branch <branch_name>
git checkout <branch_name>

Sources

http://git-scm.com/doc

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: