github简单命令
1.安装 yum install -y git 2.配置帐户(github.com注册) git config --global user.name goozgk git config --global user.email goozgk@qq.com 3.创建一个新的仓库repo mkdir -p /work/git_repo cd /worl/git_repo git init # 初始化 4.编写程序 vim test.py 5.查看状态 git status [root@localhost git_repo]# git status # On branch master # # Initial commit # # Untracked files: # (use "git add <file>..." to include in what will be committed) # # test.py nothing added to commit but untracked files present (use "git add" to track) 6.暂存 – git add [root@localhost git_repo]# git add test.py [root@localhost git_repo]# git add -A # if you want to