All Collections
Tutorials
Making changes to your repository
Making changes to your repository

This article describes a simple git workflow of creating a new branch, making changes to code and pushing them to remote repository

S
Written by Sanna Luukkonen
Updated over a week ago

This article assumes you already have a git repository set up. If not, you can use git init to initialise a local repository, or clone a remote repository to your machine with git clone.

First, create a new branch by

git checkout -b "my-new-feature"

Then you can implement your new feature or bug fix. After you have done your necessary changes, add your changes to staging area:

git add myChangedFile.py

Then commit your changes:

git commit -m "Change my file for some reason"

Push your changes to your remote repository (Github, Gitlab or some other service).

git push <remote_name> my-new-feature

Next steps

Did this answer your question?