Skip to content

Instantly share code, notes, and snippets.

@gordonturibamwe
Created February 21, 2023 08:51
Show Gist options
  • Select an option

  • Save gordonturibamwe/8184840bcc3400334cf5638d23259301 to your computer and use it in GitHub Desktop.

Select an option

Save gordonturibamwe/8184840bcc3400334cf5638d23259301 to your computer and use it in GitHub Desktop.
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
# dependencies
/node_modules
/.pnp
.pnp.js
# testing
/coverage
# next.js
/.next/
/out/
# production
/build
# misc
.DS_Store
*.pem
# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*
# local env files
.env*.local
# vercel
.vercel
# typescript
*.tsbuildinfo
next-env.d.ts
@gordonturibamwe
Copy link
Author

Make changes in . gitignore file.
Run git rm -r --cached . command.
Run git add . command.
git commit -m "Commit message" or just git commit or continue working.

@gordonturibamwe
Copy link
Author

First, remove all files from your Git repository using: git rm -r *

After that you should commit: using git commit -m "your comment"

After that you push using: git push (that's update the origin repository)

To verify your status using: git status

After that you can copy all your local files in the local Git folder, and you add them to the Git repository using: git add -A

You commit (git commit -m "your comment" and you push (git push)

@gordonturibamwe
Copy link
Author

git push origin -D origin/main
git push origin --delete origin/main

@gordonturibamwe
Copy link
Author

git push origin -D origin/main
git push origin --delete origin/main


git push origin main

@gordonturibamwe
Copy link
Author

@gordonturibamwe
Copy link
Author

gordonturibamwe commented Feb 21, 2023

git remote add origin https://github.com/zoficash/zoficash-staking-front-end.git
git remote set-url origin https://github.com/zoficash/zoficash-staking-front-end.git
git remote -v
git push origin staging

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment