Skip to content

Instantly share code, notes, and snippets.

Created August 17, 2013 16:32
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save anonymous/2fdc3dbcd4e79599da25 to your computer and use it in GitHub Desktop.
slava@ubuntu:~/apps/thanh-real-estate$ git add .
slava@ubuntu:~/apps/thanh-real-estate$ git commit -m "ok"
# On branch master
# Changes not staged for commit:
# (use "git add/rm <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
#
# deleted: public/css/lt_ie_10.css
# deleted: vendor/assets/javascripts/PIE.js
#
no changes added to commit (use "git add" and/or "git commit -a")
slava@ubuntu:~/apps/thanh-real-estate$ git push
warning: push.default is unset; its implicit value is changing in
Git 2.0 from 'matching' to 'simple'. To squelch this message
See 'git help config' and search for 'push.default' for further information.
(the 'simple' mode was introduced in Git 1.7.11. Use the similar mode
'current' instead of 'simple' if you sometimes use older versions of Git)
Password for 'https://slavajacobson@bitbucket.org':
Everything up-to-date
slava@ubuntu:~/apps/thanh-real-estate$ git add . -A
slava@ubuntu:~/apps/thanh-real-estate$ git commit -m "moved files"
[master f7a08d1] moved files
2 files changed, 92 deletions(-)
delete mode 100644 public/css/lt_ie_10.css
delete mode 100644 vendor/assets/javascripts/PIE.js
slava@ubuntu:~/apps/thanh-real-estate$ git push
warning: push.default is unset; its implicit value is changing in
Git 2.0 from 'matching' to 'simple'. To squelch this message
See 'git help config' and search for 'push.default' for further information.
(the 'simple' mode was introduced in Git 1.7.11. Use the similar mode
'current' instead of 'simple' if you sometimes use older versions of Git)
Password for 'https://slavajacobson@bitbucket.org':
Counting objects: 13, done.
Compressing objects: 100% (6/6), done.
Writing objects: 100% (7/7), 572 bytes, done.
Total 7 (delta 3), reused 0 (delta 0)
To https://slavajacobson@bitbucket.org/slavajacobson/thanh-real-estate.git
1254d79..f7a08d1 master -> master
slava@ubuntu:~/apps/thanh-real-estate$ git add -u
slava@ubuntu:~/apps/thanh-real-estate$ git commit -m "moved files"
# On branch master
nothing to commit, working directory clean
slava@ubuntu:~/apps/thanh-real-estate$ git push
warning: push.default is unset; its implicit value is changing in
Git 2.0 from 'matching' to 'simple'. To squelch this message
and maintain the current behavior after the default changes, use:
git config --global push.default matching
To squelch this message and adopt the new behavior now, use:
git config --global push.default simple
See 'git help config' and search for 'push.default' for further information.
(the 'simple' mode was introduced in Git 1.7.11. Use the similar mode
'current' instead of 'simple' if you sometimes use older versions of Git)
Password for 'https://slavajacobson@bitbucket.org':
Everything up-to-date
slava@ubuntu:~/apps/thanh-real-estate$ git rm vendor/assets/javascripts/PIE.js
fatal: pathspec 'vendor/assets/javascripts/PIE.js' did not match any files
slava@ubuntu:~/apps/thanh-real-estate$ git rm --cached file
fatal: pathspec 'file' did not match any files
slava@ubuntu:~/apps/thanh-real-estate$ git rm vendor/assets/javascripts/PIE.js --cached file
fatal: pathspec 'vendor/assets/javascripts/PIE.js' did not match any files
slava@ubuntu:~/apps/thanh-real-estate$ git clean .
fatal: clean.requireForce defaults to true and neither -n nor -f given; refusing to clean
slava@ubuntu:~/apps/thanh-real-estate$ git clean . -fn
slava@ubuntu:~/apps/thanh-real-estate$ git clean . -f
slava@ubuntu:~/apps/thanh-real-estate$ git commit -m "cleaned"
# On branch master
nothing to commit, working directory clean
slava@ubuntu:~/apps/thanh-real-estate$ git clean . -fxn
Would remove db/development.sqlite3
Would remove db/production.sqlite3
Would remove log/Production.log
Would remove log/development.log
Would remove log/production.log
Would not remove tmp/
slava@ubuntu:~/apps/thanh-real-estate$ git ls-files --deleted
slava@ubuntu:~/apps/thanh-real-estate$ git rm $(git ls-files --deleted)
slava@ubuntu:~/apps/thanh-real-estate$ git add -u
slava@ubuntu:~/apps/thanh-real-estate$ git commit -m "removed files"
# On branch master
nothing to commit, working directory clean
slava@ubuntu:~/apps/thanh-real-estate$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment