Created
December 10, 2023 13:39
-
-
Save crispy-computing-machine/78edce6d6db65d1137d14c9a42bcd008 to your computer and use it in GitHub Desktop.
Create GIT Repo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Navigate to your project directory using the command prompt | |
cd path\to\your\project | |
# Initialize a new Git repository | |
git init | |
# Add all files to the staging area | |
git add . | |
# Commit the changes | |
git commit -m "Initial commit" | |
# Optionally, you can connect the local repository to a remote repository (e.g., on GitHub) | |
# Replace 'your-username' and 'your-repo' with your GitHub username and repository name | |
git remote add origin https://github.com/your-username/your-repo.git | |
# Push the changes to the remote repository | |
git push -u origin master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment