Skip to content

Latest commit

 

History

History
45 lines (27 loc) · 976 Bytes

commands.md

File metadata and controls

45 lines (27 loc) · 976 Bytes

Commands (Git Commands)

Take a look at the GIT Cheat Sheet in the Resources section for a more extensive list of commands

Setup

To add your Github Username

  • git config --global user.name

To add your Github Email

  • git config --global user.email

Initialization

To Initialize an existing directory as a Git repository

  • git init

To clone a repository (Download current version from repository)

  • git clone <url>

Development

To stage your files (add to the commit)

  • git add .

To commit changes

  • git commit -m "Commit Message"

To push to the current remote and the current branch

  • git push

Update repository content from the current remote and current branch

  • git pull

  • THESE ARE BIT A FRACTION OF ALL THE POSSIBLE GIT COMMANDS, but they are are some of the most common


Resources

GIT Cheat Sheet


next