Your Daily Git (@DailyGit) profile picture

Git is full of hidden advanced features. Reply to us with your Git discoveries and we'll share them with the Twitterverse.

Joined January 2011
Loser of this fantasy football league gets a hideous tattoo.These are actual grown men. America is a wonderful place youtu.be/lEt1vcp2bgs
2
8
6
Replying to @DailyGit
@DailyGit Note that doesn't clone one branch. It just checks that one out.
How to clone a specific #git branch: git clone -b <branch> <remote_repo>
1
1
List un-pushed #git commits: git log origin/master..HEAD
1
Your Daily Git retweeted
Git is such a huge turning point in human history, I propose we call our current time period the Git Age.
16
3
Force a #git push to a repo; for example, if you reset back some local commits which were already pushed: git push --force
1
Remove a #git commit (only for local commits). 1) git rebase -i <commit a spot before target>. 2) Delete the row of the commit, save, quit.
How GitHub does their workflow (also commentary on git-flow): scottchacon.com/2011/08/31/g…
1
Echo out the (un-diffed) contents of a file from a previous #git commit: git show <commit hash>:<path/to/file>
Use #git to email yourself a list of patches: git send-email <commits since this revision>
Reset your #git tree to a previous commit while preserving your local working changes: git reset --keep <commit>
Create an svn tag with git-svn: git svn tag <tag name> #git
After git-svn cloning a repo with -s to include the remote branches/tags, a local branch must be created before you can work in it. #git
Run: git branch -r to list remote SVN branches, git checkout -b local-branch -t remote-branch to create a local branch, then git svn rebase.