To initialize a new repository, use the following command:
pygit init
To add files to the staging area, use the following command:
pygit add <file1> <file2>
Replace <file1>
, <file2>
, etc. with the paths to the files you want to add.
To commit the changes in the staging area, use the following command:
pygit commit
This will create a new commit with the changes in the staging area.
To switch to a different branch, use the following command:
pygit checkout <branch-name>
Replace <branch-name>
with the name of the branch you want to switch to.
To view the commit history, use the following command:
pygit log
This will display a list of commits with their respective details.