git add [filename]
git commit -m "[describe]"
git push origin master
git status
git init
git remote add origin git@github.com:TongWee/[respository name].git
git config --globle user.name "[Yourname]"
git config --globle user.email "[Your Email Address]"
- 可以添加目录,会将该目录下所有文件进行add
- 对修改要进行提交才能生效,-a 参数提交所有修改
- 将修改提交到,已经与远程代码库连接的本地仓库
- 当前修改的状态
- 在当前目录新建仓库
- 与github远程代码库进行连接,不能添加空的本地仓库
- 必须与github用户名和邮箱修改一致,才能在主页显示提交
g++ [filename] -o [a.out] -g
gdb
file [a.out]
b [line or function] //breakpoint at line or function
d // remove breakpoint
r // run
s // step into
n // step over
c // continue
p [varname] // watch var value
q // quit