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-
- Open up Git Bash in that specific folder.
git init(this will make that folder a repository)
git include .(this will increase all data files to the repository)
git commit -m "Intial commit msg"(all files now in repository)
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-
- Open your GitHub profile and develop a New Repository.
- Copy the SSH Critical of that produced repository.
- Open Git Bash in that individual folder which you want to press.
git distant insert origin PASTE_SSH_Key_OF_Made_REPO
git force origin principal
This will effectively drive that folder to your GitHub account.
Thank You 🙂