Git
Git LF will be replaced by CRLF
git config —global core.autocrlf input
git config —local core.autocrlf input
https://stackoverflow.com/questions/1967370/git-replacing-lf-with-crlf
https://stackoverflow.com/questions/5834014/lf-will-be-replaced-by-crlf-in-git-what-is-that-and-is-it-important
https://stackoverflow.com/questions/2517190/how-do-i-force-git-to-use-lf-instead-of-crlf-under-windows
Git skills
- git add by pattern: add all files like src/sub_folder/all_xxx.yaml
git add ./\*all_*.yaml
Copy a git repo to another repo
cd repo_to_be_copied
git checkout -b master_copy
git remote add other_origin git@github.com/new_repo_name.git
git push -u other_origin --all
git push -u other_origin --tags
cd new_repo_name
git pull
git checkout master_copy
git pull
git checkout master
git merge master_copy --allow-unrelated-histories
cd repo_to_be_copied
git remote remove other_origin
page revision: 5, last edited: 20 Apr 2020 21:48