Skip to content

Instantly share code, notes, and snippets.

@pablomaurer
Last active August 29, 2015 14:04
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 pablomaurer/e3ffa2ea88e5de050363 to your computer and use it in GitHub Desktop.
Save pablomaurer/e3ffa2ea88e5de050363 to your computer and use it in GitHub Desktop.
Git simplified
// Pullen
Entfernte änderungen holen
// Pushen
Lokale änderungen hochladen
// Committen
Lokale änderungen beschreiben und als bereit für das hochladen markieren
// Branch wechseln
git checkout andererBranch
// branch "feature" auf den stand von master bringen
1. git checkout feature
1. git pull --rebase origin master
2. pushen
// untrack a file, that was once pushed (for example a config file with sample password)
git update-index --assume-unchanged path/to/file
// track agian a untracked file
git update-index --no-assume-unchanged path/to/file
// see list of untracked files
git ls-files -v | grep '^[[:lower:]]'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment