Cloning and Editing Repositories using Git - barrycumbie/solid-fishstick-snowcats GitHub Wiki
Git is a source code management tool. It is used with projects of various sizes and is free and open-sourced. With Git developers can track changes in the source code, work together with multiple others in non-linear development.
- Download git by going to gitforwindows.org
- On the website hit download.
- Go to your github repository
- Click on the green CODE button
- Copy the HTTP address
- Put it into this line of code in your terminal.
git clone <link>
Cloning your repository allows you to make a copy of an existing repository, including all of its branches and files. This way you can make changes to a repository or branch without making anything permanent.
- If you want to work on a branch of your cloned repository other than main type
git checkout -b <desired branch>
- If you want to create a new branch on the repo
git branch [branch-name]
- If you want the status of the file you are working on
git status
- Add the files with the code
git add .
- Use the code
git commit -m "[descriptive message]"
- Finally transmit the commits to the remote repository with the code
git push --set-upstream origin [branch name]
GO TO YOUR GITHUB REPOSITORY AND CHECK EVERYTHING IS UPDATED CONGRATULATION YOU'RE DONE 💯