anyone give me a cheatsheet of github and git #166277
-
|
need something quick and fast to graps |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
-------------------------🚀 Basic Git Configuration-------------------------git config --global user.name "Your Name" # set your name -------------------------🚀 Starting a new project-------------------------git init # initialize empty repo in current directory -------------------------🚀 Cloning an existing repo-------------------------git clone # download repo from GitHub -------------------------🚀 Typical workflow-------------------------git status # see what's changed -------------------------🚀 Branching-------------------------git branch # list branches -------------------------🚀 Logs & history-------------------------git log --oneline # see condensed commit history -------------------------🚀 Check remotes-------------------------git remote -v # list linked remote repos |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-------------------------
🚀 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
…