项目作者: xiangxing98

项目描述 :
侯祥胡的自我成长学习记录网络空间--Git/R/Linux/Sublime Text/Data Science/Web Tech(HTML/CSS/Javascript/SQL/Python)--github webpage
高级语言: HTML
项目地址: git://github.com/xiangxing98/xiangxing98.github.io.git


xiangxing98.github.io

简介

侯祥胡的Github 个人空间,分享一些计算机与程序设计方面的学习感悟。

Hello github,This is 侯祥胡的Git Pages link.

This is Back to Xiangxing98 Github Profile inline link.

有用的文章、链接

Configuring-a-remote-for-a-fork_Syncing-a-fork.html

https://github.com/xiangxing98/

侯祥胡 linkedin Information

Git_CheatSheet

Data Camp - data science

This is Data camp inline link.

  • Improve your skills - and your career
  • No matter what industry you’re in, learning how to analyze and understand your data is critical.
  • That’s why DataCamp provides you with the tools to learn the data science skills you need to start your own data projects.

R Tutorials

R Tutorials

git CODE

  1. echo "# learn-centos" >> README.md
  2. git init
  3. git add README.md
  4. git commit -m "first commit"
  5. git remote add origin https://github.com/xiangxing98/learn-centos.git
  6. git push -u origin master
  7. #SSH
  8. echo "# learn-centos" >> README.md
  9. git init
  10. git add README.md
  11. git commit -m "first commit"
  12. git remote add origin git@github.com:xiangxing98/learn-centos.git
  13. git push -u origin master
  14. git clone git@github.com:xiangxing98/learn-centos.git learn-centos
  15. git add .
  16. git commit -m "comment here about what you

Update_Forked_Project_in_Github

参考

1.配置上游项目地址, 建立主repo的远程源

Configure remotes,When a repo is cloned, it has a default remote called origin that points to your fork on GitHub, not the original repo it was forked from.

To keep track of the original repo, you need to add another remote named upstream:

  1. cd Spoon-Knife
  2. # Changes the active directory in the prompt to the newly cloned "Spoon-Knife" directory
  3. git remote -v
  4. # 首先要先确定一下是否建立了主repo的远程源
  5. git remote add upstream https://github.com/octocat/Spoon-Knife.git
  6. # Assigns the original repo to a remote called "upstream"
  7. # 如果里面只能看到你自己的两个源(fetch 和 push),那就需要添加主repo的源,git remote add upstream URL
  8. git remote -v
  9. # 再次确定一下是否建立了主repo的远程源,现在你就能看到upstream了,like:
  10. # origin git@github.com:cobish/fork-demo.git (fetch)
  11. # origin git@github.com:cobish/fork-demo.git (push)
  12. # upstream https://github.com/wabish/fork-demo.git (fetch)
  13. # upstream https://github.com/wabish/fork-demo.git (push)

2. 获取上游项目更新

Pull in (Fetch then merge) upstream changes. If the original repo you forked your project from gets updated, you can add those updates to your fork by running the following code:

  1. git fetch upstream
  2. # Fetches any new changes from the original repo. Pulls in changes not present in your local repository, without modifying your files. 使用 fetch 命令更新,fetch 后会被存储在一个本地分支 upstream/master 上。

3.与主repo合并

  1. git merge upstream/master
  2. # Merges any changes fetched into your working files,合并到本地分支。切换到 master 分支,合并 upstream/master 分支。

4. 提交推送

  1. git push origin master

Updated @ 2019-07-06

Updated @ 2021-09-26