Skip to content

Instantly share code, notes, and snippets.

@tian-im
Created March 5, 2020 05:21
Show Gist options
  • Save tian-im/71a9c9b6deb2cbe3e319dfe099123f0a to your computer and use it in GitHub Desktop.
Save tian-im/71a9c9b6deb2cbe3e319dfe099123f0a to your computer and use it in GitHub Desktop.
How to start using git version control

cd to target directory, run the following commands to start using git version control:

# start a local repository
git init

# add all files under directory to git repository
git add .

# commit the current version
git commit -m 'chore: first version'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment