1. Install git scm to your machine
sudo apt install git-all
2. Create a new GitHub repository
3. Ensure git is enabled in your VSCode settings
4. Add a Remote
- CTRL+SHIFT+P > Add Remote
- Paste your GitHub repo url ex: https://github.com/DevLCodes/acrux-pharma-site.git
- Add a remote name
5. Pull all the initial changes
First commit the changes present in your local system and run
git pull <repo-name> master --allow-unrelated-histories
6. Commit all your changes to GitHub
Stage the changes that you want to commit , commit and push to the remote to which you want to add your changes.
Clone a GitHub Repository
git clone <repo-url>
Uninstall git from Ubuntu
sudo apt-get remove git
Top comments (0)