git学习记录

注意事项

1.常提交commit,提交了东西就丢不了。

2.提交前先fetch from upstream,然后show in history,然后commit ,然后rebase on

3.换提交版本之前,先push to gerrit.

4.push之前先本地编译一下,run as -maven build,没错再push。

5.reset soft ,指针指向之前版本,但代码是保持最新的不变 。reset head 就是代码也回到之前版本了。

猜你喜欢

转载自zhitangrui2010.iteye.com/blog/2332983
今日推荐