What do you want to save?
Add Code snippet
New code examples
-
Other 2022-02-24 17:20:09
Running ESLint in precommit does not stop on warnings
"husky": { "hooks": { "pre-commit": "npm run lint-fix && eslint \"**/*.js\" --fix --max-warnings=0 && git add -A ", "pre-push": "npm run lint" } } Add solution -
Shell/Bash 2022-01-31 06:36:43
deploy react express to github pages
Make sure you have already created a repo in github. In "package.json" file of project add - "homepage": "https://username.github.io/reponame" Run Install - "yarn add gh-pages" In "package.json/scripts" ad... Add solution -
Shell/Bash 2021-11-07 22:26:16
adding an existing project to github using the command line
# Go into your existing directory and run below commands cd docker-spring-boot echo "# docker-spring-boot" >> README.md git init git add -A git commit -m "first commit" git branch -M master git remote add origin https://github.co... Add solution -
Shell/Bash 2021-10-18 13:36:07
how to compress all branches on branch into one branch back to the master
git checkout yourBranch git reset $(git merge-base master yourBranch) git add -A git commit -m "one commit on yourBranch" This isn't perfect as it implies you know from which branch "yourBranch" is coming from. Note: finding that o... Add solution -
Shell/Bash 2021-10-08 09:51:11
how to revert to earlier commit git
//Git Rollback to a specific commit via Mac terminal //Navigate to project and open git log cd projectname git log --oneline //Locate and checkout the desired commit ID git checkout abc1234 . //(Type q to quit the git log) //Stage All changes, commit... Add solution -
Shell/Bash 2021-09-04 11:24:02
github add all files/directories and subdirectories
git add -A Add solution
Best helpers
Ranking is empty