# Setup for Editing Locally
Setup the Command line tool for distributed version control:
Launch a terminal (alias command line) in the folder where you want to copy files to after installing git:
git bash here

New Terminal in Folder according to this blog-post. Maybe there is also a git-bash here option in the context menu?!Alternative: use
pwd(present working directory) andcd(change directory) to navigate to your destination folder.
Once you have your terminal open clone the repository using
git clone https://github.com/enryH/cbpp_info.git # copy files from remote server hosted by github
cd cbpp_info # got into just created folder
which will promt something like (“$” denotes a input by a user)
$ git clone https://github.com/enryH/cbpp_info.git
Cloning into 'cbpp_info'...
remote: Enumerating objects: 16, done.
remote: Counting objects: 100% (16/16), done.
remote: Compressing objects: 100% (11/11), done.
remote: Total 16 (delta 3), reused 13 (delta 3), pack-reused 0
Unpacking objects: 100% (16/16), done.
$ cd cbpp_info/
$ git status
On branch bikes
nothing to commit, working tree clean
Navigate to your newly creating folder using your file browser and open files in VS Code. You can preview markdown files in VS Code, i.e. have them rendered as on github.
Use
tabfor autocompleting file-names.
In the best case you create your own branch to prepare changes which then will be pulled back into the main or development branch.
git branch mygroupbranch # create new branch
git checkout mygroupbranch # change filesystem to new branch
Then you are on your own branch on your local device, which you then can synchronize with the repository
Commit your code from your local branch. See using git status and git diff where you are, what changed and decide what you want to commit:
git status # which branch are you on? which files are staged?
git diff # see differences between current and previous version of files
Then add file one by one to the stagging area.
git add file1
git add file2 file3 file4
Check again using git status if you added all you wanted. Then commit
git commit -m "my commit message" # the message can be anything
git push # will promt several thing if branch does not exist on github remote server