Created by
git bash
, shell integration
and more .git
folder, which is called a git repository..git
folder, then you'll delete your project’s history
# make sure you are in your root project folder:
pwd
# the output should be the full path you are currently in
# initialize git repo for that folder:
git init
# per project - make sure you type next commands while you are in the root git folder
git config user.email "your_mail@mail.com"
git config user.name "User Name"
# or if you wish to setup your git identity on global level, you can use the --global option:
git config --global user.email "your_mail@mail.com"
git config --global user.name "User Name"
Also known as adding files content to the index
# to stage changes only in certain file/path:
git add path
# to stage all changes (including deletion of files):
git add -A
commit
git add
options? check this stackoverflow answer
git rm file
# commit files - the default system editor for git will be opened to write your Commit Message
git commit
# commit and write the Commit Message
git commit -m'Your Commit Message'
git config --global core.editor "code --wait"
# stage all changes:
git add -A
# commit and write the Commit Message
git commit -m'Your Commit Message'
git status
git log
push
that changes
# push your default local branch (master/main) to the corresponding remote (origin):
git push
Git Tutorial for Beginners: Command-Line Fundamentals
Github Tutorial For Beginners - Github Basics for Mac or Windows & Source Control Basics
These slides are based on
customised version of
framework