This is another change
Highly recommended to install Microsoft's Visual Studio Code. It is available for OSX, Linux and Windows.
- Create directory
mkdir sandbox
. - Optionally add any file (README.md for example).
- Initialize the git repository
git init
- See log
git log
- Add files to staging area
git add README.md
- Commit staged area to repo
git commit -m "Added my first file"
- See log again
git log
This so far has version control enabled locally. Next step is to sync this to a remote repository.
- See current list of repostories to sync to/from.
git remote -v
- Add github project
git remote add origin [email protected]:dcwrk/gitsandbox.git
For production, only need to clone the 'dashboard' branch and install requirements as following:
git clone --single-branch --branch dashboard --recursive <url> clide-sim-dashboard
cd clide-sim-dashboard
python3 -m pip install -r requirements.txt
For developement, make sure to set the hooksPath variable to use the .githooks directory.
git clone --recursive <url> clide-sim-devel
cd clide-sim-devel
python3 -m pip install -r requirements.txt
git config --local core.hooksPath .githooks/
git config --global user.email "<email address>"
git config --global user.name "<Name>"
# Note that the only the git 'submodules' defined in the master branch will get
# recursively updated. To update a submodule located exclusively on another branch,
# switch to that branch first and the update the module
git checkout subtest
cd subfolder
git submodule update --init --recursive
# To pull latest changes in branch, including submodules:
git pull --recurse-submodules
git config --global pull.ff only
git config --global diff.tool vscode git config --global difftool.vscode.cmd 'code --new-window --wait --diff $LOCAL $REMOTE'
git config --global difftool.prompt false
git config --global merge.tool vscode git config --global mergetool.vscode.cmd 'code --new-window --wait --merge $REMOTE $LOCAL $BASE $MERGED'
git checkout dashboard git merge -m "Merging devel into main" david-devel
git tag -a HEAD -m "message" git push --tags git tag --list -n99
git log --oneline
git submodule add https://github.com/dbarnett/python-helloworld.git subtestdir
git submodule update --init --recursive