Skip to content

This is repository for teaching material of miniclass preparation WRI 2023

Notifications You must be signed in to change notification settings

G4CENeiz/preparation-git

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 

Repository files navigation

Learn Git Basic for Colaboration

This is repository for teaching material of miniclass preparation WRI 2023

Learning outcome :

  • Understand how to start colaboration in the open source repository
  • Understand basic step by step colaboration in the open source repository

What should you do ?

  • Fork this repository

  • Clone the repository to your device, you can use git bash git clone <repo_url>

  • Create a new branch, then checkout to the new branch that has been created. Use git checkout -b <branch_name> or git branch <branch_name> then follow by git switch <branch_name>.

  • Start make a folder and some file in the repository. Example :

    image

  • Then, commit the file1 and file2 in the first commit, then commit file3 in the second commit. First of all move the file into staging area use git add <file_name>, after that you can commit the change using git commit -m "commit message"

  • So in the end we will have 2 commit, 1 commit for file1 and file2, 1 commit for file3

  • Push the commit into your branch using git push -u origin <branch_name>

  • Check the repository in the github, then choose compare pull & request. If you encounter a compare and pull request button doesn't appear. Ask the mentor immediately.

  • Fill the some details in the pull & request section then finish it!

End of section

If you find another problem with your git, feel free to ask the mentor.

Another resource to learn git individually

About

This is repository for teaching material of miniclass preparation WRI 2023

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published