Skip to content

Instantly share code, notes, and snippets.

@jrdmb
Last active August 29, 2015 14:18
Show Gist options
  • Save jrdmb/4bf1490a8d3219d1bf74 to your computer and use it in GitHub Desktop.
Save jrdmb/4bf1490a8d3219d1bf74 to your computer and use it in GitHub Desktop.
GitHub and Gist Tips
To list remote Git branches (from: http://rakhesh.com/coding/list-remote-branches/):
git ls-remote
git remote show origin
Create and delete local and remote Git branches
http://rakhesh.com/coding/creating-and-delete-remote-git-branches/
Move the .git folder out of the working tree
http://rakhesh.com/coding/how-to-move-separate-the-git-folder-out-of-your-working-tree/
Add only untracked files
git add -i. Type a (for "add untracked"), then * (for "all"), then q (to quit)
http://stackoverflow.com/questions/7446640/adding-only-untracked-files
#github #git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment