Skip to content

Instantly share code, notes, and snippets.

@AnneTheAgile
Last active August 29, 2015 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AnneTheAgile/a4437f87e8170d72357b to your computer and use it in GitHub Desktop.
Save AnneTheAgile/a4437f87e8170d72357b to your computer and use it in GitHub Desktop.

65.[] ; X.git checkout remote branch - Stack Overflow http://stackoverflow.com/questions/1783405/git-checkout-remote-branch

https://www.atlassian.com/git/tutorial/git-branches#!checkout http://stackoverflow.com/questions/5082249/pushing-to-git-remote-branch http://www.gitguys.com/topics/git-diff/

$ # List all remotes
$ git remote -v
origin	https://github.com/AnneTheAgile/AREPO (fetch)
origin	https://github.com/AnneTheAgile/AREPO (push)
theirs	https://github.com/THEM/AREPO (fetch)
theirs	https://github.com/THEM/AREPO (push)

$ # List all remote branches
$ git branch -r
  origin/HEAD -> origin/master
  origin/master
  THEM/master

$ # Create and check out <new-branch>= MY-JIRA-ID-DESCRIPION. 
$ git checkout -b MY-JIRA-ID-DESCRIPION
  
$ # List all Local Branches
$ git branch -v
* MY-JIRA-ID-DESCRIPION SHAXX AMSG
  master          SHAXX AMSG


$  Show differences between the Working Directory and the most recent commit
$ git diff HEAD

$ # Push a named branch from local to remote with the same (new) name.
$ git push origin MY-JIRA-ID-DESCRIPION

60.[] ; X.Why are my contributions not showing up on my profile? · GitHub Help https://help.github.com/articles/why-are-my-contributions-not-showing-up-on-my-profile

61.[] ; X.Why are my commits linked to the wrong user? · GitHub Help https://help.github.com/articles/why-are-my-commits-linked-to-the-wrong-user

62.[] ; X.Github suggestion: Per-organization email overrides https://gist.github.com/BPScott/1366790

63.[] ; X.Git config | Atlassian Git Tutorial https://www.atlassian.com/git/tutorial/git-basics#!config

64.[] ; X.Gists https://gist.github.com/AnneTheAgile/a4437f87e8170d72357b/edit

66.[] ; X.How do I rename a local Git branch? - Stack Overflow http://stackoverflow.com/questions/6591213/how-do-i-rename-a-local-git-branch

67.[] ; X.Pushing to a remote · GitHub Help https://help.github.com/articles/pushing-to-a-remote

1.[] ; X.Git - First-Time Git Setup http://git-scm.com/book/en/Getting-Started-First-Time-Git-Setup

# Check Settings
$ git config --list

# Global = Set per-user; vs. System = Per Machine; vs Per Project myPath/.git/config
$ git config --global user.name "John Doe"
$ git config --global user.email johndoe@example.com

# pico now, emacs later?
$ git config --global core.editor emacs

# Did NOT change yet; 2014-06-06Fri14:42:37
# $ git config --global merge.tool vimdiff
# Allowed; kdiff3, tkdiff, meld, xxdiff, emerge, vimdiff, gvimdiff, ecmerge, and opendiff as valid merge tools. 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment