Skip to content

smith961/flexisaf-version-control

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

Version Control

Practicing various git command and their executions

Creating a Repository

  • created on my GitHub account

Cloning a Repository

Create new-branch

  • git branch
  • git branch Smitho

Change to new-branch

  • git checkout
  • git checkout Smitho

Committing Changes

  • git add or git add .
  • git add .

Adding Commit message

  • git commit -m 'initial commit'
  • git commit -m ""

Reverting Commits

  • git revert
  • git revert commit - git log --oneline | -git revert
  • quit editor - q | - git push

Pulling Changes (Downstream and Upstream)

  • git pull
  • git pull Version-Control-Repo main

Pushing Changes (Downstream and Upstream)

  • git push
  • git push Version-Control-Repo main

Fetching Changes

  • git fetch
  • git fetch Version-Control-Repo

Merging Branches

  • git merge
  • git merge Smitho

Renaming Branches

  • git branch -m
  • git branch -m Smitho
  • git push origin -u Smitho

Creating Pull Requests

  • pull request was created and done on the github repository online.

Reverting Pull Requests

  • git log
  • git revert

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors