Skip to content

Instantly share code, notes, and snippets.

@crispy-computing-machine
Created December 10, 2023 13:39
Show Gist options
  • Save crispy-computing-machine/78edce6d6db65d1137d14c9a42bcd008 to your computer and use it in GitHub Desktop.
Save crispy-computing-machine/78edce6d6db65d1137d14c9a42bcd008 to your computer and use it in GitHub Desktop.
Create GIT Repo
# 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