查看git状态

1
git status

设置git别名

1
2
3
4
5
查找config文件直接添加
[alias]
ac = "!f() { git add . && git commit -m \"$1\"; }; f"
使用命令进行添加
git config --global alias.ac "!f() { git add . && git commit -m \"$1\"; }; f"

查询远程仓库

1
2
git remote -v
git remote show origin

检查SSH是否能够连接成功

1
ssh -T git@github.com

如果成功,可能会让输入密码,进行远程连接,然后提示You’ve successfully authenticated