infoMore than 5 years have passed since last update.
Git cmd
Last updated at Posted at 2014-07-03
Update Index
git update-index --no-assume-unchanged path/to/file.txt
List files
git ls-tree -r --name-only master
git ls-tree --full-tree -r HEAD
Create a global .gitignore
git config --global core.excludesfile ~/.gitignore_global
Git force a pull to overwrite
git fetch origin master
git reset --hard FETCH_HEAD
git clean -df
Git ignore to remove cache
git rm -rf --cached .
git add .
Reset to previous origin head
git reset --hard ORIG_HEAD
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme
What you can do with signing up