Git Commands

  • Published: June 24, 2016

Commands

  • Git Config $ git config --list

  • Git config username and email for all repos

    $ git config --global user.name "John Doe"

    $ git config --global user.email "your_email@example.com"

  • Initialize a repository. Creates a new subdirectory named .git that contains all of your necessary repository files. $ git init .

  • Get a copy of an existing Git repo. $ git clone [url]

Uruguay
Marcelo Canina
I'm Marcelo Canina, a developer from Uruguay. I build websites and web-based applications from the ground up and share what I learn here.
comments powered by Disqus
Except as otherwise noted, the content of this page is licensed under CC BY-NC-ND 4.0 ·