Skip to content

Instantly share code, notes, and snippets.

@craftfortress
Created March 23, 2017 11:13
Show Gist options
  • Save craftfortress/2e74ae353613d7e31199289cb73a562a to your computer and use it in GitHub Desktop.
Save craftfortress/2e74ae353613d7e31199289cb73a562a to your computer and use it in GitHub Desktop.
============
Git
============
git status
git branch —all
git rebase -i HEAD~3 // Remove previous 3 commits
git push origin +master // Force push
git remote -v // List all remotes
git rm -r --cached node_modules // Untrack
Rename Branch
git branch -m feature/newBranchName // Rename
git push origin :oldBranchName // Delete remote branch with old name
git push --set-upstream origin newBranchName // Create remote branch with new name
============
Bash
============
prep processname
kill -9 7813
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment