cd ~
echo "https://eager7:pct1197639@github.com" > .git-credentials
git config --global credential.helper store
可以看到~/.gitconfig文件,会多了一项:
[credential]
helper = store
2. 使用vim作为默认的编辑器
git config --global core.editor vim
3. 基本使用命令
3.1 查看本地版本的状态以及差异:
pct@ubuntu-x86:~/ubuntu-x86/IOTC$ git status
On branch master
Your branch is up-to-date with 'origin/master'.
Changes to be committed:
(use "git reset HEAD <file>..." to unstage)
new file: Makefile
new file: main.c
new file: utils.h