1 | # Prerequisites |
2 | *.d |
3 | |
4 | # Compiled Object files |
5 | *.slo |
6 | *.lo |
7 | *.o |
8 | *.obj |
9 | |
10 | # Precompiled Headers |
11 | *.gch |
12 | *.pch |
13 | |
14 | # Compiled Dynamic libraries |
15 | *.so |
16 | *.dylib |
17 | *.dll |
18 | |
19 | # Compiled Static libraries |
20 | *.lai |
21 | *.la |
22 | *.a |
23 | *.lib |
1 | ############################################################################### |
2 | # Set default behavior to automatically normalize line endings. |
3 | ############################################################################### |
4 | * text=auto |
5 | ############################################################################### |
6 | # Set default behavior for command prompt diff. |
7 | ############################################################################### |
8 | *.rs text diff=rust |
9 | ############################################################################### |
10 | # Set the merge driver for project and solution files |
11 | ############################################################################### |
12 | #*.sln merge=binary |
13 | #*.csproj merge=binary |
14 | ############################################################################### |
15 | # diff behavior for common document formats |
16 | # Don't forget to put the following in .git/config: |
17 | # [diff "zip"] |
18 | # textconv = unzip -c -a |
19 | ############################################################################### |
20 | *.docx diff=zip |
1 | [core] |
2 | bare = false |
3 | [remote "origin"] |
4 | url = git@gitlab.com:mojo/dojo.git |
5 | fetch = +refs/heads/*:refs/remotes/origin/* |
6 | pushurl = git@gitlab.com:mojo/dojo.git |
7 | [branch "myfeature"] |
8 | remote = origin |
9 | merge = refs/heads/myfeature |
Cherry-picker
1 | git show HEAD~:myfile.txt |
1 | # Opt 1) for the whole repo |
2 | git merge otherbranch --no-commit --no-ff -X theirs |
3 | git reset currentbranch |
4 | |
5 | # Opt 2) |
6 | git checkout otherbranch . |
1 | git whatchanged -p myfile.txt |
1 | # Opt 1) |
2 | git fetch |
3 | git reset origin/master --hard |
4 | |
5 | # Opt 2) |
6 | git pull --rebase |
1 | git reset <commit A> |
2 | git add . |
3 | git commit -m "BCDEF" |