Git — source control system, repository — source code storage, GitHub — repository hosting.
First of all, it is recommended to download applications able to conveniently work with Git.
.gitignore— indicates files or extensions for ignoring
.gitattributes— specifies the characteristics of file formats and endings of lines (usually just
.gitkeep— empty file, allows you to commit an empty folder
README.md— the file to be displayed in the web interface of GitHub when you go to the folder
The GitHub system uses the pull request mechanism — first a fork is created — a copy of the repository — commits are made to it, and then the merge request is sent to the original repository.
Forkbutton at the top of the screen or select a specific file and click the pencil icon (this will also create a fork)
Clone or downloadbutton in fork will download the repository for making changes
New pull requestbutton will create a merge/pull request — select the desired branch and target repository
To update the fork code to the current version of the target repository — at this time, the easiest solution is to remove the fork and recreate it. The removal is done in the fork settings in its
Delete this repository -> Entering the name of the repository.
Git allows you to store commits locally on the computer (the commit itself does not cause sending to the server), and send at any convenient time.
git pullor consonant fetch operation in the editor — getting changes from the server
git pushor consonant sync operation in the editor — sending changes to the server
What if the sending fails?
You can also make changes to the code or wiki pages editing via the GitHub web interface by selecting the file and clicking the pencil icon.