forked from danieljprice/phantom
-
Notifications
You must be signed in to change notification settings - Fork 1
Home
Lionel Siess edited this page Nov 26, 2021
·
22 revisions
local commit
git status
git diff src/main/eos.F90
git add filename
git commit -m "these are all the changes I made made"
git push
getting a specific revision
git checkout 536aa21 -b Krome
undo last commit while keeping the changes
git reset --soft HEAD~1
getting updates:
git stash
git pull
git stash pop
set OMP THREAD number
export OMP_NUM_THREADS=1
git checkout master
git pull
git fetch upstream
git merge upstream/master
git checkout master
git pull
git checkout wind
git merge master
Working solution : prevent the automatic commit of the merge, remove devel and commit without devel
git checkout master
git merge --no-commit --no-ff wind
git reset -- devel
git commit
The solution with .gitattribues does not work for me ?
git config --global merge.ours.driver true
git checkout master
echo "devel merge=ours" >> .gitattributes
git merge --no-commit --no-ff wind