08 Okt

Git | Getting started

 

Get Information

Show current path of git repository

$ git rev-parse --show-toplevel

Config

Change Github repository for local clone

$ git clone https://github.com/<original repository>
$ cd <original repository>
$ git remote set-url origin https://github.com/<new git user>/<new project name>
$ git push -u origin master