Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
en:manual:contrib:git_contribution_guide [2022/03/30 23:10]
rachad [Change <user> to your username:]
en:manual:contrib:git_contribution_guide [2023/02/21 10:35]
i3_relativism [Edit, add and remove files]
Line 1: Line 1:
 <note warning> This page is still in progress, so please dont aprove this draft yet!</note> <note warning> This page is still in progress, so please dont aprove this draft yet!</note>
-====== Hyperbola Source Contribution Guidelines ======+====== Git Contribution Guidelines ======
 ===== SSH ===== ===== SSH =====
  
Line 77: Line 77:
 </code> </code>
  
-==== Edit, add and remove files =====+===== Edit, add and remove files ======
  
 Create the files you want to add to extra repository and type:  Create the files you want to add to extra repository and type: 
  
 <code bash> <code bash>
-git add file1 file2 +git add .
-git commit -m "Add your commit comment here"+
 </code> </code>
  
 <code bash> <code bash>
-git commit -a -m "Add your commit comment here"+git commit -sam "Add your commit comment here"
 </code> </code>
  
-To push and pull from the team repository make these changes inside team/packages/extra/.git/config  
  
-<note tip>This is used to add all commits, -am might also be used to do both at the same time</note>+ 
 +<note tip>To push and pull from the team repository make these changes inside team/packages/extra/.git/config </note>
  
 ==== Change <user> to your username: ==== ==== Change <user> to your username: ====
Line 121: Line 120:
 </code> </code>
  
-To merge commits to the master branch +To merge commits from master branch 
  
 <code bash> <code bash>
-git checkout master  +git checkout <user> 
-git merge <user>+git merge master
 </code> </code>
  
Line 131: Line 130:
  
 <code bash> <code bash>
-git push origin master   # to push commits to the master branch +git push   # to push commits in the current branch
 </code> </code>
  
-==== Git Revert ====+===== Reverting commits =====
  
 We countinue with more git commands We countinue with more git commands
Line 164: Line 163:
 </code> </code>
  
-==== Git rebase ====+===== Rebasing codebase =====
  
 However, please don't use this command in master, for that reason i'm insisting for each user to create their own branches. However, please don't use this command in master, for that reason i'm insisting for each user to create their own branches.
Line 174: Line 173:
 </code> </code>
  
-==== Git push ====+===== Pushing changes =====
  
 Remember to push those commits to master and milky-way-v0.4 branches if you consider those ones stable and tested by you first because I will pull them to our build server to build and push to repos. Remember to push those commits to master and milky-way-v0.4 branches if you consider those ones stable and tested by you first because I will pull them to our build server to build and push to repos.
Line 183: Line 182:
 </code> </code>
  
-==== Conclusion ====+====== Conclusion ======
  
 So, in short, you have 2 ways to push your commits: So, in short, you have 2 ways to push your commits: