Git
tutorials#
Best Chinese one so far I've seen Document
common command list#
from ruanyifeng (in Chinese)
errors:#
fatal: renaming 'MyProj/src/ts0621/foobar.c' failed: No such file or directory
git on nas#
For Win#
use PuTTy
For Mac#
use native terminal.app
Common#
frequently used commands:
1 2 3 4 5 6 7 8 9 | |
20200804 最后的问题是没解决 submodule 的问题。 以后再看看
20200809 Started git study 20200816 back to Git on NAS
TODO#
merge : git
study content#
20200809 following this book https://git-scm.com/book
note#
2.2#
- the subdirectories, it's also possible to add have new
.gitignorefiles, which is applied only to files under this subdirectory. - use VIM to edit
git commitcomments. - set core.editor to #VSCode https://stackoverflow.com/a/53602330
git rmdoes remove the file from the disk. Usegit rm --cachedto detach from git track.- Use git
mvbecause I do think it cannot track moved things
2.3#
20200811 https://git-scm.com/book/en/v2/Git-Basics-Viewing-the-Commit-History
git log.- with format
git log --pretty[=oneline/format :"..."]. format specifiers - detailed version
git log --stat. - detailed version:
git log -p [-NUM]:-p=--patch.
2.4#
20200815
git commit --amendgit reset HEADgit checkout
It is not so necessary to do this 100% right, its not important. Time matters more.