User Tools

Site Tools


github

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
github [2019/03/15 01:02] giovanegithub [2019/03/15 13:20] (current) – [- Initializing git from a previously created local repository] pericles
Line 5: Line 5:
 ===== GitHub ===== ===== GitHub =====
  
-//GitHub// is an online platform where you can host and share your git repositories and projects. After git is installed in your machine, it is necessary to configure an username and an email.+//GitHub// is an online platform where you can host and share your git repositories and projects. After git is installed in your machine, it is necessary to configure an username and an email. [[https://help.github.com/en/enterprise/2.16/user/articles/adding-a-new-ssh-key-to-your-github-account|https://help.github.com/en/enterprise/2.16/user/articles/adding-a-new-ssh-key-to-your-]]github-account 
 <code> <code>
-git configure --global user.name ["username"]+git config --global user.name ["username"]
  
-git configure --global user.email ["email"]+git config --global user.email ["email"]
 </code> </code>
  
Line 38: Line 39:
 <code> <code>
 git commit -m ["Static problem tested. Need to finish the dynamic part implementation"] git commit -m ["Static problem tested. Need to finish the dynamic part implementation"]
 +</code>
 +
 +If you are responding to an issue (let's say, issue #1), then you can use the following command:
 +
 +<code>
 +git commit -m ["Static problem tested. Need to finish the dynamic part implementation"] #1
 </code> </code>
  
Line 53: Line 60:
  
 and your github username and password will be requested. and your github username and password will be requested.
 +
  
 ==== - Cloning an existing remote repository ==== ==== - Cloning an existing remote repository ====
Line 70: Line 78:
 </code> </code>
  
-Branches+==== Branches ====
  
 A branch indicates how the code flows. It is really helpful for co-works and when several people work simultaneously in a same code. When a new repository is created, usually it has only the branch master. To create new branches the command is A branch indicates how the code flows. It is really helpful for co-works and when several people work simultaneously in a same code. When a new repository is created, usually it has only the branch master. To create new branches the command is
Line 78: Line 86:
 </code> </code>
  
-by doing this the code flow is divided in two branches: master and a new one. Every change that you make in the new branch, the master one will remain intact. Suppose that after several changes you would like to merge the branches again. this can be performed  by typing:+by doing this the code flow is divided in two branches: master and a new one. Every change that you make in the new branch, the master one will remain intact. Suppose that after several changes you would like to merge the branches again. This can be performed by typing:
  
 <code> <code>
Line 84: Line 92:
 </code> </code>
  
-By doing that, the two branches become just the master again,and every change that were previously made in the alternative branch are transferred to master as well.+By doing that, those two branches become just the master again,and every change that were previously made in the alternative branch are transferred to master as well.
  
 Research group codes hosted on Github: Research group codes hosted on Github:
github.1552611775.txt.gz · Last modified: by giovane