Site Tools


linux:general:git

Table of Contents

This is an old revision of the document!


Git

Commands

Command Function
git log –follow check_symlink shows the change history of the file “check_symlink”
git remote -v verify

Remove history

#download the repository
git clone https://github.com/Lunetikk/check_symlink
#change into repository
cd check_symlink
#checkout to a temp branch
git checkout --orphan temp_branch
#add all files
git add -A
#commit the changes
git commit -am "Initial commit"
#delete the old branch "master"
git branch -D master
#rename the temp branch to master
git branch -m master

linux/general/git.1513698570.txt.gz · Last modified: 2017/12/19 16:49 by lunetikk