Skip to main content

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.

note

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!

  1. From your terminal, clone the sop-development repo and cd into the sop-development repo'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
  1. Set sslVerify to false for the repo and any submodule. For sop-developemnt, that only includes crew-aids repo included as the docs/ dir. On completion, you should be in the sop-development project'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

Tip

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​

  1. commit your changes to your working branch
    git commit -am "add a feature"
  2. 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 branch
    git push origin <branch-name>