Skip to content

stephenLucien/learngit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

learning git

config

# global user name
git config --global user.name "$NAME"
git config --global user.email "$EMAIL"

create a git repository

# create a project folder
mkdir learngit

# using git for version control
# change to project folder
cd learngit
# init git
git init .

# init project
touch README.md
touch README_en.md
# check status of current git project
git status

# track project files and save to cache
git add README.md
git add README_en.md

# edit README.md
vi README.md

# save to cache
git add README.md

# edit README_en.md and save to cache
vi README_en.md
git add README_en.md

# edit README_en.md again
vi README_en.md

# discard changes and restore from cache
git restore README_en.md

# commit
git add *
git commit -m "project init"
git tag "v0.0.1"

About

learn git tools

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published