LoginSignup
2
3

More 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
2
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
3