June 27, 2020

166 words 1 min read

Creating a new repository

Creating a new repository

After signing in to PUFsecurity code repository, now you can create a new repository to build an amazing project.

Creating a new repository

  1. Navigate to the dashboard page and click the new repository button on the right side.

image

  1. Type a name for your repository.

image

  1. Check Visibility option if you don’t want anyone can see the repository.

  2. Click the Create Repository button.

  3. The repository was created. Now you can push your commits to this repository!

image

Pushing commits to your repositories

  1. Add a remote repository to local git configuration
// e.g. git remote add origin https://code.pufsecurity.com/demo/demo.git
git remote add origin https://code.pufsecurity.com/<your name>/<repo name>.git
  1. or clone an existing remote repository
git clone https://code.pufsecurity.com/demo/demo.git
  1. use git add -i to stage the changes

For more information about git add, please check git add document

  1. use git commit -m "<commit message>" to commit all staged changes.

For more information about git commit, please check git commit document

  1. In the last step, use git push to push commites to the target remote repository.

image