Git: Difference between revisions

From Piszczynski
piszczynski>Aleks
(Created page with " == GitHub == Once git is installed and repo is cloned set the global username and password to allow automatic push and pull to work: *git config --global user.name "Your Na...")
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
== Create Local Git Repository ==
Create a folder for the git repository then use the following command to initialise it as a git repo:<syntaxhighlight lang="bash">
git init
</syntaxhighlight>


== GitHub ==
== GitHub ==

Latest revision as of 20:40, 18 November 2023

Create Local Git Repository

Create a folder for the git repository then use the following command to initialise it as a git repo:

git init

GitHub

Once git is installed and repo is cloned set the global username and password to allow automatic push and pull to work:

  • git config --global user.name "Your Name"
  • git config --global user.email "youremail@yourdomain.com"