1 Star 0 Fork 0

过尽飞鸿字字愁 / nodejs_study

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

BigData

我们是有灵魂的程序员,所以我们的代码富有诗意;

只要下定决心,过去的失败,正好是未来行动的借鉴;只要不屈不挠,一时的障碍,正好是推动成功的力量。

一个人最大的挑战,是如何去克服自己的缺点。

用(传统方式)命令行把修改过后的代码上传到码云???

  1. git add .
  2. git commit -m "提交信息"
  3. git push

1.git新建分支及提交代码到分支

首先,你可以  git clone xxx(仓库链接)

这样,我们就能将主分支的代码下载到本地了,并且自动建立了与远程仓库的连接,接下来只需要去到下载好的文件里按照以下步骤建立属于自己的分支和提交代码即可:

(1)新建分支

git branch xxx (xxx填写你的分支名称)

(2)查看所有分支

git branch -a

(3)切换到某一分支

git checkout xxx (xxx填写要切换的分支名称)

(4)添加修改代码到缓存(注意最后的"."前面有个空格

git add .

(5)添加提交代码的备注

git commit -m "xxx" (xxx为本次提交代码的备注)

(6)提交代码到指定分支

git push origin xxx (xxx为要提交代码的分支名称)


git  add .
git  commit -m '提交的备注信息'
git  push -u origin dev

git  checkout master
git pull origin master
//如果是自己一个开发就没有必要了,为了保险期间还是pull

git  merge dev

git status

On branch master
Your branch is ahead of 'origin/master' by 12 commits.
  (use "git push" to publish your local commits)
nothing to commit, working tree clean

//上面的意思就是你有12个commit,需要push到远程master上 
> 最后执行下面提交命令
git push origin master

更新远程分支列表
git remote update origin --prune

查看所有分支
git branch -a

删除远程分支Chapater6
git push origin --delete Chapater6

删除本地分支 Chapater6
git branch -d  Chapater6

The MIT License (MIT) Copyright (c) 2014 connors and other contributors Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

学如逆水行舟,不进则退. 展开 收起
JavaScript
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
JavaScript
1
https://gitee.com/cwflink/nodejs_study.git
git@gitee.com:cwflink/nodejs_study.git
cwflink
nodejs_study
nodejs_study
master

搜索帮助