git commit & git push

Git Commit

  • Maintaining the integrity of your work by controlling what goes into and out of your repository is an important job of any version control system. The changes you make to one or more files don't become part of the repository until you first issue a "commit" command. This command prompts you to enter brief comments listing the changes you made. Once committed, your file is part of your local branch of the repository, but is not yet merged with the main branch.

Git Push

  • Before others can use your code, you must add it to the main branch. The "push" command transfers the changes you committed to your local branch to the remote, main repository. The push command "git pull origin master" automatically sends your local repository changes to the remote repository you pulled your branch from originally. You can undo the changes you pushed by using the "git-revert" command.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值