git githup 使用

来源:互联网 发布:qq三国100js装备 编辑:程序博客网 时间:2024/06/05 11:09

git

mkdir tmp //创建推送目录
cd tmp //进入推送目录
git init //设置该目录为推送
touch README //生成readme
git add README //加入修改列表
git commit -m ‘first commit’ //递交修改声明
git remote add origin git@github.com:abcd/tmp.git //为远程Git更名为origin(出错的话输入: git remote rm origin)
git push -u origin master //推送此次修改

Get you project from github:

v0id@eof ~/code $ git clone https://github.com/*.git
v0id@eof ~/code $ git status

modify file by your need, and update github source.

v0id@eof ~/code $ git add your_file_changed_version

commit modify file or resource

v0id@eof ~/code $ git commit -a -m “update java for delete”

push commit to github server.

v0id@eof ~/code $ git push

enter your github user name and pw.

0 0