Commands Given By Git

 Hi,

In this blog we will see default commands that we get after creating repository in git.



Creating a new repository on the command line

echo "# d" >> README.md

  git init

  git add README.md

  git commit -m "first commit"

  git branch -M main

  git remote add origin https://github.com/<git-username>/<repository-name>.git

  git push -u origin main





Push code to an existing repository from the command line

git remote add origin https://github.com/<git-username>/<repository-name>.git

git branch -M main

git push -u origin main


Comments

Popular posts from this blog

pxSubscript and pxListSubscript Properties In Pega

Frequently Used Date Expressions In Pega

pyForEachCount In Pega