"GitHub is a cloud-based platform where you can store, share, and work together with others to write code."
If you are running into issues you can go here.
You can also try out the "Hello World" tutorial.
If you are running into issues you can go here.
There are two ways to create a new repository: by clicking the new button on the dashboard in the website, or by clicking File à New Repository (or Ctrl+N) in GitHub Desktop.
Website: Fill out the information that it requires and the repository will be created. The repository will be created in your remote repository.
GitHub Desktop: In GitHub Desktop the repository will be created in the designated folder of your choosing. When you create, add, delete, or change files in this folder on your computer, GitHub Desktop will recognize a change has been made and will ask if the changes should be committed. The changes will not be reflected until you Commit and Push the information back to the GitHub website. Then the changes can be seen in your account on the website/remote version.
To add a file directly on the GitHub website:
To add a file using GitHub Desktop:
You don’t have to push the changes from the website because you are already in the remote repository. Push means putting files/changes from the local to remote repository.
After you commit the changes you make, click “Push origin” so that the changes are pushed to the remote repository.
You can’t fetch anything from the website because fetch means grabbing files/changes from the remote repository and putting them in the local repository.
The “Pull” request is for taking things from the remote repository and putting it in the local directory, so this cannot be done on the website.
Clink on “Pull origin” to fetch and automatically merge changes from the remote repository to your local repository.
Branching is a fundamental concept in Git that allows you to diverge from the main line of development and continue to work without affecting that main line. Branches provide an isolated environment for your work, enabling you to work on features, fixes, or experiments independently.
Note: Your local directory will change depending on what branch you are working on. So make sure the branch you want is selected in GitHub Desktop
Note: Sometimes a merging a branch will not work because there is a conflict in a file. This needs to be rectified before completing the merger.
The gitignore file is a useful file that will tell GitHub Desktop which files not to upload into the remote repository. For example, large or confidential files will be ignored when you push your repository. The gitignore file is just a text file with the list of file names to ignore. You can also put a star(*) in front of an extension and it will know to ignore all files of that extension type. For example, *.csv will ignore all .csv files regardless of the name of the files.
GitHub is home to many public repositories that you can use for your own work (double check licensing agreements for anything you do want to use in research/publications). You can make a copy of these public repositories by clicking on the Fork button. This will create a new repository under your account with all the files from the repository that you wanted.
If you nee more instruction you can go here: GitHub Docs