Local Changes
Clone Repoβ
These instructions will walk you through cloning the sop-development repo to your local computer. The same can be done with any other repo for which you have read/write permissions.
cd to where you want your code before running the following as it will create a folder for the repo wherever you are
Below, ONLY include your username before the @. You will be prompted to sign in via a pop up for GitLab. Use your PAT as your password!
- From your terminal, clone the sop-development repo and
cdinto thesop-developmentrepo's root directory.
git -c http.sslVerify=false clone --recursive https://<username>@code.levelup.cce.af.mil/262-cos/dok/sop-development.git
cd ./sop-development
- Set sslVerify to false for the repo and any submodule. For
sop-developemnt, that only includescrew-aidsrepo included as thedocs/dir. On completion, you should be in thesop-developmentproject's root dir.
git config http.sslVerify "false"
cd ./docs
git config http.sslVerify "false"
cd ..
Checkout your branchβ
You will not be able to create a merge request if you try to push your code to the main branch. Checkout the branch you created in the previous step by running the following command
if you've forgotten your branch name, you can see all the branches on the server by running the following command
git branch -r
git checkout -b <branch-name>
Make your changesβ
You now have the files local on your computer and can modify them however you want.
Commit and Pushβ
- commit your changes to your working branch
git commit -am "add a feature" - push your changes to your remote working branch:
note
if you forgot your branch name, vs code has it in the bottom left corner OR you can run the command below and your branch will be the one with an asterisk next to it
git branchgit push origin <branch-name>