# Once a repo is cloned, you'll be working inside of the default branch (the default is `master`)git clone https://github.com/<git-user>/<repo-name>&&cd<repo-name># make changes and stage your files (repeat the `git add` command for each file, or use `git add .` to stage all)gitadd<filename># now commit your codegit commit -m"added some changes to my repo!"# push changes in `master` branch to githubgit push origin master
#Just follow next steps in console terminal ;)git init #Initialize git in foldergitadd.#add all files of folder to be pushedgit commit -m"First commit"#add first commitgit remote add origin remote_repository_URL #replace with your remote repo urlgit remote -v#verify that your remote repository url is properly foundgit push --force origin master #force pushing your project into github repo
$ git init -b main
$ gitadd.# 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
$ git remote add origin <REMOTE_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
echo"Project_name_and_details">> README.md
git init
gitadd README.md
gitadd /path/to/file #folders or files you want to addgit commit -m"first commit"git branch -M main #Use if you dont want to use the master branchgit remote add origin https://github.com/username/project.git
git remote -v#Always good to checkgit push -u origin main
# First Go to main folder on windows directory
$ gitadd.# Commit for file changing
$ git commit -m"Your Commit"# See in your github directory for branch such as "main or master"
$ git push origin main