Pull the local code from GitHub 

1. Open the Git Shell command prompt.

2. Go to your project location.

3. Go to the master branch by typing: git checkout master

Go to the master branch by typing: git checkout master4. Pull the latest code from the master branch by using the command: git pull

Pull the latest code from the master branch by using the command: git pull

Push the local code on GitHub

 1. Open the Git Shell command prompt.

2. Go to your project location folder, like D:\XYZGit\ProjectName

Go to your project location folder, like D:\XYZGit\ProjectName

3. Type the following command in the Git Shell to know which files are updated/added to the ‘Project ’ folder: git status

Type the following command in the Git Shell to know which files are updated/added to the ‘Project ’ folder: git status

4. Now, you need to add all the files that are showing in red to your created branch using the command: git add filename

    Example: git add for_sale_filter.feature

 git add for_sale_filter.feature

5. After executing the above command, you will notice that the files get added to the GitHub folder.

After executing the above command, you will notice that the files get added to the GitHub folder.After executing the above command, you will notice that the files get added to the GitHub folder.

6. Type ‘git status’ in the Git Shell and you will see the added files appearing in green color.

Type ‘git status’ in the Git Shell and you will see the added files appearing in green color.

7. Now, you need to commit those files into the folder using the following command:

git commit –m “message” (message should be the performed action)

git commit –m “message” (message should be the performed actio

8. You can check using the following command: git push

You can check using the following command: git push

Note: When you try to push the changes, execute the following command after executing the git push command: git push –set-upstream

git push --set-upstream