Skip to content

Instantly share code, notes, and snippets.

@isabellachen
Created October 10, 2017 13:56
Show Gist options
  • Save isabellachen/97ec5e4134951cdeeb50851d335dd286 to your computer and use it in GitHub Desktop.
Save isabellachen/97ec5e4134951cdeeb50851d335dd286 to your computer and use it in GitHub Desktop.
Making a commit after refactoring and renaming files and adding new files
$ git add -p 
$ git ls-files --others --exclude-standard //list untracked files
$ git ls-files
$ git add <untracked01.js> <untracked02.js>
$ git commit -m 'commit message'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment