xxxxxxxxxx
git remote add origin https://github.com/Anderson68-chale/ANDERSON.git
git branch -M main
git push -u origin main
xxxxxxxxxx
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/<your username>/<repository>.git
git push -u origin main
xxxxxxxxxx
//it assumes theres at least one commit on the local repo
git init
git remote add origin git@github.com:username/new_repo
git push -u origin master
xxxxxxxxxx
git init
• git add .
• git commit -m "first commit"
• git remote add
origin https://github.com/sd1511/FinraDeck.git
• git push -u origin master
xxxxxxxxxx
$ git init
$ git add .
# Adds the files in the local repository and stages them for commit. To unstage a file, use 'git reset HEAD YOUR-FILE'.
$ git commit -m "First commit"
# Commits the tracked changes and prepares them to be pushed to a remote repository. To remove this commit and modify the file, use 'git reset --soft HEAD~1' and commit and add the file again.
$ git remote add origin remote repository URL
# Sets the new remote
$ git remote -v
# Verifies the new remote URL
$ git push origin main
# Pushes the changes in your local repository up to the remote repository you specified as the origin
xxxxxxxxxx
echo "# asiance_data_mobile" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/Javlon002/asiance_data_mobile.git
git push -u origin main
xxxxxxxxxx
echo "# visitor_management" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M Master
git remote add origin https://github.com/aymenit2008/visitor_management.git
git push -u origin Master
xxxxxxxxxx
# These instructions assume you have the Git command line tool installed on your machine.
# Step 1: Initialize a local git repository
# Open your terminal or command prompt and navigate to the directory where you want to create your local project/repository.
# Run the following command to initialize an empty Git repository:
git init
# Step 2: Create a new repository on GitHub
# Go to https://github.com and login to your account (or create one if you don't have it).
# Click on the "+" button in the top-right corner and select "New repository".
# Provide a name for your repository and, optionally, a description.
# Choose whether you want the repository to be public or private.
# Leave the "Add a README file" option unchecked for now.
# Optionally, you can choose to add a .gitignore or license file if desired.
# Then click on the "Create repository" button.
# Step 3: Connect your local repository to the remote GitHub repository
# In the terminal/command prompt, run the following command:
git remote add origin <repository_URL>
# Replace <repository_URL> with the URL of your GitHub repository. You can find the URL on the repository page.
# Step 4: Push your local repository changes to GitHub
# Run the following command:
git push -u origin main
# This will push the local repository's contents to the GitHub repository.
# Now your local repository is connected to the GitHub repository, and any changes pushed to the local repository can be easily synced with the remote repository on GitHub.
xxxxxxxxxx
# Navigate to root directory
# initialize
git init -b main
# stage and commit changes
git add . && git commit -m "initial commit"
# create new repository on GitHub using the GitHub CLI interface
gh repo create
# Follow prompts and instructions
xxxxxxxxxx
git init
git add .
git commit -m 'Initial commit'
gh repo create # => With the new GitHub CLI
xxxxxxxxxx
echo "# language-identification" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/fellow-coder/language-identification.git
git push -u origin main