This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ~/test is just an example directory on the remote computer | |
| rsync -avz -e ssh . myremoteuser@<host-address>:~/test |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # | |
| # This is a draft how you can detect vs 2017 toolset and set it for vcvars | |
| # | |
| class Version: | |
| def __init__(self, version_text): | |
| self.version = version_text | |
| self.version_split = [int(x) for x in self.version.split(".")] | |
| @property | |
| def major(self): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| echo "checkout the feature branch" | |
| git checkout -b myfeature-branch | |
| echo "rebase on top of the master branch" | |
| git rebase master |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cmake_minimum_required (VERSION 2.8.11) | |
| project (MySolutionName) # MySolutionName could be anything, it's not really important | |
| add_library (HelloWorldLibrary hello.cpp) # HelloWorldLibrary is the name of our dll-project | |
| add_executable (HelloWorldApp main.cpp) # HelloWorldApp is the name of our exe project | |
| target_link_libraries (helloDemo PUBLIC Hello) # now we have to link our executable (HelloWorldApp) with our libraray (HelloWorldLibrary) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //To fetch a branch, you simply need to: | |
| git fetch origin | |
| //This will fetch all of the remote branches for you. With the remote branches | |
| //in hand, you now need to check out the branch you are interested in, giving | |
| //you a local working copy: | |
| git checkout -b test origin/test |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| echo "delete all untracked files/directories" | |
| echo "dry run => show all files which will be deleted" | |
| git clean -X -n | |
| echo "delete files" | |
| git clean -f | |
| echo "delete files and directories (also ignored files)" | |
| git clean -x -d -f |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| git config --global alias.alol 'log --oneline --graph --decorate --all' | |
| git config --global alias.lol 'log --oneline --graph --decorate' |