Basic Git Commands

1. Configure username and email:
git config --global user.name "git config –global user.email Alice@example.com

2. Create a new local repository:
git init

3. Check-out a repository:
git clone /path/to/repository (local server)
git clone username@host:/path/to/repository (remote server)

4. Add file(s) to staging:
git add
git add *

5. Commit changes:
git commit -m "Commit message"

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.