Open
Code
Home
Create
List
Home
Create
List
Edit
Title
Content
GitHub Commands: git init git add . git commit -m "some comment" create a github repository git push origin [branch]: Pushes local changes to the specified branch on GitHub. git pull origin [branch]: Fetches changes from the specified branch on GitHub and merges them into the local branch. git fork: Creates a copy (fork) of a repository on GitHub to your GitHub account. git clone [repository_url]: Clones a repository from a GitHub URL to your local machine. git remote add origin [repository_url]: Adds a remote repository URL as the origin for your local repository. git remote set-url origin [new_repository_url] git pull-request: Creates a pull request on GitHub to suggest changes from your branch to the original repository. git merge [pull_request_branch]: Merges a pull request into the main branch of a repository. git branch -d [branch_name]: Deletes a branch locally. git branch -m novo_nome_da_branch (rename the current branch) git push --delete origin [branch_name]: Deletes a branch on GitHub. git log --oneline: Displays a simplified commit history, showing only the commit messages. git reset --hard HEAD~1 Undo an Already Completed Merge git checkout -b nome-do-novo-branch delete local repo Remove-Item -Recurse -Force .git Change repo name git branch -m novo-nome git push origin --delete antigo-nome git push origin novo-nome
Image
Category
Categories
Front-End
Back-End
Database
DevOps
Others
Password
Back to List