What do you want to save?
Add Code snippet
New code examples
-
Shell/Bash 2022-03-19 14:55:02
push project to gitlab account
# First remove any existing hidden git folder in your project folder # Initialize project in your folder git init # add your gitlab project as your remote origin git remote add origin https://gitlab.com/your_account_name/project_name.git # add all files i... Add solution -
Other 2022-03-19 11:35:22
save router config with ansible
---- hosts: router gather_facts: false vars: git_branch: /etc/ansible/playbooks/backuptasks:---- hosts: router gather_facts: false vars: git_branch: /etc/ansible/playbooks/backuptasks: - name: switch to target branch command: git checkout &q... Add solution -
Shell/Bash 2022-03-16 08:35:03
add a file to git
/* go to the folder, open the terminal and type this commands */ git init git add . /* . => it is to add all the files */ git commit -m "first_commit" git remote add origin https://github.com/yourusername/your-repo-name.git... Add solution -
Shell/Bash 2022-03-02 15:20:25
initialize a repo and push to github
git init git add . git commit -m "First commit" git remote add origin <remote repository URL> git remote -v git branch -M main git push -u origin main 1- # Create a new repository on GitHub. To avoid errors, do not initialize the new repo... Add solution -
Javascript 2022-02-20 20:05:03
Deploying Node.js Apps on Heroku
1- Specify the version of node on package.json "engines": { "node": "14.x" }, npm install heroku local web Your app should now be running on http://localhost:5000/. echo "/node_modules npm-debug.log .DS_Store... Add solution -
Javascript 2022-02-12 13:40:04
deploy react app to heroku
npm install -g create-react-app create-react-app my-app cd my-app git init heroku create -b https://github.com/mars/create-react-app-buildpack.git git add . git commit -m "react-create-app on Heroku" git push heroku master heroku open Add solution
Best helpers
Gabi Purcaru
+5
L. Samson
+5
Yoyo
+5
Skry
+5
Colocvial
+5
Sarah witte
+5
Leosar
+5
Tobiak777
+5
Tjd
+5