Resources
Answers
Examples
Sign in
Get Started
What do you want to save?
Add Code snippet
New code examples
Other
2021-10-29 15:49:12
push code to github
git init git add . git commit -m 'First commit' git remote add origin <remote repository URL> git push origin master
Add solution
Shell/Bash
2021-10-29 08:07:14
delete git branch from remote
git push origin --delete <your remote branch name>
Add solution
Shell/Bash
2021-10-27 23:00:16
how to push force git
git push origin --force
Add solution
Shell/Bash
2021-10-27 17:33:09
search tag git
git tag -a v1.2 git push origin v1.2
Add solution
Other
2021-10-27 06:35:17
push to specific remote branch
git push origin localBranchName:remoteBranchName
Add solution
Shell/Bash
2021-10-26 14:50:12
how to remove node modules from github
# Do the below steps - # Make .gitignore file. # Run below commands in your terminal git rm -r --cached node_modules git commit -am "node_modules be gone!" git push origin master
Add solution
Shell/Bash
2021-10-25 00:11:09
git remove remote file keep local
git rm -r --cached File-or-FolderName git commit -m "Removed folder from repository" git push origin master
Add solution
Shell/Bash
2021-10-24 18:16:11
merge branch to master
git checkout master git pull origin master git merge test git push origin master
Add solution
Shell/Bash
2021-10-24 09:38:09
git delete remote branch
// delete branch locally git branch -d localBranchName //delete local branch that is unmerged git branch -D localBranchName // delete branch remotely git push origin --delete remoteBranchName
Add solution
Shell/Bash
2021-10-24 07:54:06
git delete last commit in remote
git reset HEAD^ # remove commit locally git push origin +HEAD # force-push the new HEAD commit
Add solution
‹
1
2
3
4
5
6
7
8
9
10
...
16
17
›
Best helpers
daily
weekly
monthly
for 3 months
Little Girl
+5
Pratyush Das
+5
show more
This website uses cookies to make IQCode work for you. By using this site, you agree to our
cookie policy
Welcome Back!
Sign up to unlock all of IQCode features:
Test your skills and track progress
Engage in comprehensive interactive courses
Commit to daily skill-enhancing challenges
Solve practical, real-world issues
Share your insights and learnings
Sign in
E-mail
Password
Recover lost password
Log in
Or log in with
Not registered?
Sign up takes less than a minute
Create a Free Account
Sign up to unlock all of IQCode features:
Test your skills and track progress
Engage in comprehensive interactive courses
Commit to daily skill-enhancing challenges
Solve practical, real-world issues
Share your insights and learnings
Sign up
Email
Password
Sign up for free
Or sign up with
By signing up, you agree to the
Terms and Conditions
and
Privacy Policy
. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.