Skip to content

Instantly share code, notes, and snippets.

@Sathiyapramod
Last active October 15, 2023 05:23
Show Gist options
  • Save Sathiyapramod/e9d865a73de914d664ff36598f23833a to your computer and use it in GitHub Desktop.
Save Sathiyapramod/e9d865a73de914d664ff36598f23833a to your computer and use it in GitHub Desktop.

Creating git using terminal in VS code

git config --global user.name "Sathiyapramod"
git config --global user.email "your mail id"

Initializing a empty repository

git init

Adding the Folder Content to the Git (Add Changes)

git add .

Commit the Changes

git commit -m "initial commit"

Pushing the Changes

git push origin main 

Creating a New Branch

git checkout -b new-branch-name

Changing to the new branch

git checkout new-branch-name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment