Instantly share code, notes, and snippets.

Embed
What would you like to do?
Recent git commands
  • Show changes in stash

    git stash show -p stash@{0}
    
  • Save stash with message

    git stash save "MESSAGE"
    
  • Authetication GitHub using 2FA(two-factor authentication)

    • create a file ~/.git-credentials with following content
      https://<GITHUB_USERNAME:GITHUB_TOKEN>@github.com
      
    • Store token
      git config --global credential.helper store
      

    Where GITHUB_TOKEN can be generated by visiting https://github.com/settings/tokens

    git var -l
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment