TongWee / Learngit

Include some exercise when learning git and c++.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Learning git

一些常用的命令

  1. git add [filename]
  2. git commit -m "[describe]"
  3. git push origin master
  4. git status
  5. git init
  6. git remote add origin git@github.com:TongWee/[respository name].git
  7. git config --globle user.name "[Yourname]"
  8. git config --globle user.email "[Your Email Address]"

Tips

  1. 可以添加目录,会将该目录下所有文件进行add
  2. 对修改要进行提交才能生效,-a 参数提交所有修改
  3. 将修改提交到,已经与远程代码库连接的本地仓库
  4. 当前修改的状态
  5. 在当前目录新建仓库
  6. 与github远程代码库进行连接,不能添加空的本地仓库
  7. 必须与github用户名和邮箱修改一致,才能在主页显示提交

GDB

  1. g++ [filename] -o [a.out] -g
  2. gdb
  3. file [a.out]
  4. b [line or function] //breakpoint at line or function
  5. d // remove breakpoint
  6. r // run
  7. s // step into
  8. n // step over
  9. c // continue
  10. p [varname] // watch var value
  11. q // quit

About

Include some exercise when learning git and c++.


Languages

Language:C++ 100.0%