Pushing folders from community laptop to GitHub applying Git

by:

Softwares


Hello all,
In this submit, I will be outlining the course of action to push our nearby tasks, documents and many others to a GitHub repository in straightforward and sophisticated way!
Initially of all make confident to set up Git in your laptop or computer and url your e mail and other factors to it!

Now, head toward that folder which you want to press there on GitHub.
Then, Stick to subsequent measures-

  1. Open up Git Bash in that specific folder.
  2. Type git init (this will make that folder a repository)
  3. Style git include . (this will increase all data files to the repository)
  4. Sort git commit -m "Intial commit msg" (all files now in repository)
  5. Type git position (you will get a msg “Operating tree clean up”)

These are the actions which are utilised to make a area repository, now to press the very same to a GitHub repository we use subsequent techniques-

  1. Open your GitHub profile and develop a New Repository.
  2. Copy the SSH Critical of that produced repository.
  3. Open Git Bash in that individual folder which you want to press.
  4. Variety git distant insert origin PASTE_SSH_Key_OF_Made_REPO
  5. Sort git force origin principal

This will effectively drive that folder to your GitHub account.
Thank You 🙂

Leave a Reply

Your email address will not be published.