Since automation is a great way to practice your coding skills, I decided to write a small shell script that automates these horrible and repetitive steps. Then, finally, I can run a git push and my local commit would get pushed upĦ) lie down and take a nap, exhausted from this repetitive process.Īdmittedly, this was my process, but I liked to stay organised and always be able to access my projects so I can refer to them. some initial commit message.ĥ) open a browser, go to Github, login, create a new (remote) repository, copy the url, return to my terminal, make sure I was in the correct project folder project-of-some-name.then run the git scripts needed to set up the remote repo as the 'upstream' repo and connect my local repo to it. projects folder and run mkdir project-of-some-name to create a folder with the name project-of-some-name.Ģ) cd into that project folder and do git init to initialise a local git repo in there.ģ) run touch README.MD to create the README file, open it and add some basic descriptions, including links to the resources / tutorials I was implementing in that project. So my typical project setup work flow usually goes like this:ġ) Go to my. Good news: you don't need to be a shell scripting god(dess) to do it. But the steps required to set up a project, initialise a repo, and sync with Github were really annoying and repetitive, so I decided to solve the problem.īad news: this isn't going to be a big, fancy, detailed and technically sexy post. The more complete projects I had on Github, the easier it would be for recruiters. But I needed to make sure I didn't lose my hard work, and that others could see the hard work I was putting in, so every project had to go on Github. I learned by doing projects (often freeCodeCamp ones!). This post comes out of an irritation I faced personally, when I was first learning to code - setting up my local repo and syncing with Github.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |