Skip to content
Discussion options

You must be logged in to vote

-------------------------

🚀 Basic Git Configuration

-------------------------

git config --global user.name "Your Name" # set your name
git config --global user.email "you@example.com" # set your email

-------------------------

🚀 Starting a new project

-------------------------

git init # initialize empty repo in current directory
git remote add origin # link local repo to GitHub

-------------------------

🚀 Cloning an existing repo

-------------------------

git clone # download repo from GitHub

-------------------------

🚀 Typical workflow

-------------------------

git status # see what's changed
git add . # stage ALL modified/new files
git commit -m "message" # commit snapshot with message

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@yourilhan
Comment options

@ghostinhershell
Comment options

Answer selected by yourilhan
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Best Practices Best practices, tips & tricks, and articles from GitHub and its users New To GitHub 👋 New To GitHub Question Ask and answer questions about GitHub features and usage
4 participants