Basic commands used in Git

Committing a file for eg: MyFile.txt

  • Move to staging area
    git add MyFile.txt

  • Committing files which have been moved to staging area
    git commit -m "Created MyFIle.txt"

Pushing your changes to Github

  • Pushing your branch changes to Github
    git push

Pulling changes from Github

  • Pulling branch changes from Github to your local system
    git pull --rebase

Switching active branch in your local Git project

  • Switching to a branch having name for example: feature_A
    git checkout feature_A

Creating a new Git branch

  • Creating a new branch for example feature_A
    git checkout -b feature_A

I have created two git branch , master and testing. able to push master but no testing , can you please help in this.

thank You.

Logs :-
saurabhpc@Saurabh:~/OneDrive/Learning/BI/Git_Repo$ git push orgin testing
fatal: ‘orgin’ does not appear to be a git repository
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
saurabhpc@Saurabh:~/OneDrive/Learning/BI/Git_Repo$ git remote -v
origin https://github.com/saurabh23401/Saurabh.git (fetch)
origin https://github.com/saurabh23401/Saurabh.git (push)

There is a typo in word origin