赵振华分享 http://blog.sciencenet.cn/u/zhaozhh02 解决问题背后那思想的闪光令人着迷

博文

git and github 常用命令

已有 2387 次阅读 2019-1-22 15:01 |系统分类:科研笔记


 

git clone https://github.com/zhaozhh/xxx.git %克隆服务器上的xxx代码。
git branch %查看工作分支是那个,一般用不到
git status %查看分支状态


1、删除文件 xxx.txt

git rm xxx.txt
git commit -m "remove xxx.txt"
git push origin master

2、提交代码到github

git checkout xxx %xxx: 分支名
git pull %从github上拉取最新代码,如果github的代码如果被修改的话。
git add . %提交全部文件
git commit -m "comments" %提交代码并注释。


更详细的参看:https://www.cnblogs.com/allanli/p/git_commands.html



https://wap.sciencenet.cn/blog-117412-1158487.html

上一篇:cadabra2 win10 64bit 的安装
收藏 IP: 223.78.232.*| 热度|

0

该博文允许注册用户评论 请点击登录 评论 (0 个评论)

数据加载中...

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-3-28 21:09

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部