git commands

Snippet

Bunch of git commands I use frequently.

# add all the modified files to staging
git add `git st | grep modified | cut -c14-120`
 
# add the removal all the deleted files from the repo to staging
git rm `git st | grep deleted | cut -c14-120`

Add new comment

Plain text

  • No HTML tags allowed.
  • Lines and paragraphs break automatically.