• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

OCclassprojects/gitactivity: Activity to do after Part 3 of the "Manage and ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

OCclassprojects/gitactivity

开源软件地址:

https://github.com/OCclassprojects/gitactivity

开源编程语言:


开源软件介绍:

Manage and Deploy a Project with Git

OpenClassrooms

Become

Welcome to the Activity at the end of Part 3!

I would like for you to follow these instructions line by line!

All of the commands you will need for this activity are in the course content! When you are done, push your branch to the remote repository and create a pull request!

Here are the instructions!

  1. Go to the [Github website] (https://github.com/OCclassprojects/gitactivity)
  2. Fork the repository to your Github account
  3. Clone the repository with Git on your computer
  4. Use git log to look at the file structure and commits. Note how many commits, trees, and blobs there are!
  5. Create a new branch and checkout (you can name the branch what you want)
  6. Use git log to look at your new branch
  7. Create a new file called test.txt
  8. Write “Github is awesome!” in your file and save it.
  9. Add and commit your new file to your branch
  10. Now run a git fetch to see if any new files are on the main repo
  11. Use git merge to merge your branch to the master branch on your local repo
  12. Get on the master branch as your working directory
  13. Use git interactive rebase to change move the 2nd commit to a spot after the 4th commit
  14. Change the commit message to “moved commit”
  15. Use git interactive rebase to squash the 2nd, 3rd and 4th commit into one.
  16. Change the commit message to “squashed 2,3,4”
  17. Use git reflog to look at your work
  18. Bonus: type in gitk --all and screenshot the GUI graph of your repository and commit it to your branch
  19. Bonus: use the command git log --graph --full-history --all and screenshot that and commit it to your branch
  20. Push your branch to the remote repository and create a Pull Request!

Make sure and keep a copy of your work for your mentors!




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
qsnake/git: Qsnake git package发布时间:2022-06-11
下一篇:
omniauth/omniauth-github: GitHub strategy for OmniAuth发布时间:2022-06-11
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap