- Open the terminal and run the command
sudo apt-get install git
- Open a terminal and verify the installation was successful by typing
git --version
- Download the latest Git for Windows installer.
- When you've successfully started the installer, you should see the Git Setup wizard screen. Follow the Next and Finish prompts to complete the installation. The default options are pretty sensible for most users.(Just use the default installation settings)
- Open a
Git Bash
and verify the installation was successful by typinggit --version
- Download the latest Git for Mac installer
- Follow the prompts to install Git.
- Open a terminal and verify the installation was successful by typing
git --version
- Create a file in the
collaborator
directory with the following format
- Place: City, State, Country
- Bio: Who are you?
- GitHub: [GitHub account name](GitHub link)
Give file name as `github_username.md`.
-
Add a hello world program in your favorite language
Save it as
github_username_hello-world
.
Refer this link for markdown help.
-
Fork this repository.
-
Clone your fork-ed repo down to your local machine
git clone <your_forked_url>
-
Create a branch
git checkout -b branch-name
-
Make required modifications
-
Add all your changes to be tracked by git
git add .
-
Commit your changes
git commit -m 'add <github-username> collaborator file'
OR
git commit -m 'add <github-username> program'
-
Push your changes to your forked repo
git push origin <branch-name>
-
Create a new pull request from your forked repository (Click the New Pull Request button located at the top of your repo)