Git Notes - madscatt/sasmol GitHub Wiki
GIT
https://git-scm.com/book/en/v2/Customizing-Git-Git-Configuration
config:
git config --list git config --global user.name "Joseph E. Curtis" git config --global user.email "[email protected]" git config --global core.editor "vi"
(jc@hal)git_working_copies/sasmol% cat /.gitignore_global
*
.DS_Store
*.so
*.pyc
*.o
git config --global core.excludesfile ~/.gitignore_global
both of these do not seem to work ???
git config --global core.autocrlf = true git config --global core.autocrlf = input
but if you merely edit the ~/.gitconfig file it works (there are other things in this file ... only showing the autocrlf bit
[core] autocrlf = input
cloning
git clone https://github.com/madscatt/sasmol.git
git checkout -b add_cpp_section
... do stuff ...
git add ...
git commit -m ''
git push -u sasmol add_cpp_section
(then you CAN use GitHub to merge and delete branch)
(but afterwards on local you must
update the local files already done on GitHub git pull
make the master the active branch git checkout master
delete the other branch git branch -d add_cpp_section
list branches git branch -av