1) Open a terminal or command prompt, navigate to your project's root directory, and run the following command to initialize a new Git repository:
git init
2) Stage your files
git add .
3) Commit Your Changes:
git commit -m "Initial commit"
4) Create a Remote Repository on Git Hosting Service:
5) Once you have a remote repository, you need to add it as the "origin" remote. Replace <repository-url> with the URL of your remote repository:
git remote add origin <repository-url>
6) git push -u origin master
COMMIT THE CHANGES
1) git status
2) Stage the changes - git add .
3) git commit -m "Your commit message here"
4) git push origin <branch-name>
No comments:
Post a Comment