<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Prajwal Patil</title>
    <description>The latest articles on DEV Community by Prajwal Patil (@prajwalkpatil).</description>
    <link>https://dev.to/prajwalkpatil</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F517135%2F2474a0ae-5136-464f-86c0-e3e57ebff275.png</url>
      <title>DEV Community: Prajwal Patil</title>
      <link>https://dev.to/prajwalkpatil</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/prajwalkpatil"/>
    <language>en</language>
    <item>
      <title>Learn JS with me #000</title>
      <dc:creator>Prajwal Patil</dc:creator>
      <pubDate>Fri, 23 Apr 2021 07:22:02 +0000</pubDate>
      <link>https://dev.to/prajwalkpatil/learn-js-with-me-000-1ec0</link>
      <guid>https://dev.to/prajwalkpatil/learn-js-with-me-000-1ec0</guid>
      <description>&lt;p&gt;Javascript, one of the most popular scripting languages we use.&lt;br&gt;
Javascript unlike other languages doesn’t require any installation of some compiler or anything like that, it is just implemented by our regular web browsers.&lt;/p&gt;

&lt;p&gt;Javascript also has some set of rules that every browser needs to follow. It is decided by ECMA.&lt;/p&gt;

&lt;p&gt;ECMA releases something called as ECMAScript which is a document consisting of the updates that browsers need to implement. &lt;/p&gt;

&lt;p&gt;Since 2015, these updates have become more regular, they release updates like ES2015, ES2016, ES2018 etc.&lt;/p&gt;

&lt;p&gt;Whenever updates (new release) are released it is not you who needs to update the Javascript of the browser, it is the browser that needs to implement that given release by ECMA.&lt;/p&gt;

&lt;p&gt;That is the reason, web developers are pissed off of the Internet Explorer because, it is not keeping up with the new releases of JavaScript.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--HvxDUoAW--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://i.redd.it/uyrnep7602i51.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--HvxDUoAW--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://i.redd.it/uyrnep7602i51.png" alt="Meme"&gt;&lt;/a&gt;&lt;br&gt;
Credits : r/ProgrammerHumor&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>learn</category>
      <category>webdev</category>
      <category>beginners</category>
    </item>
    <item>
      <title>Getting started with Git &amp; Github</title>
      <dc:creator>Prajwal Patil</dc:creator>
      <pubDate>Wed, 25 Nov 2020 02:57:03 +0000</pubDate>
      <link>https://dev.to/prajwalkpatil/getting-started-with-git-github-ep8</link>
      <guid>https://dev.to/prajwalkpatil/getting-started-with-git-github-ep8</guid>
      <description>&lt;p&gt;Hey everyone, here is the beginners guide to Git and GitHub hope you will take something out of it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;GitHub repository&lt;/strong&gt; a.k.a repo is something that is hoisted on the GitHub website, which contains all of your files its also called as a remote. &lt;/p&gt;

&lt;p&gt;A GitHub repo contains something like &lt;strong&gt;branches&lt;/strong&gt;. These branches are derived from the boss branch called main branch. The main branch has children branches which are derived from it. Once a child branch is created from the main branch, any changes made to the child branch will not affect the parent main branch. Lots and lots of branches are created when a project is being developed. Any project on the open-source literally has a ton of branches in it. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Branches&lt;/strong&gt; are created when a feature is being developed or a bug is being fixed or any change that is supposed to be made.  As soon as the change is done, the child branch is merged with the parent- main branch. &lt;br&gt;
&lt;strong&gt;Issues ‼&lt;/strong&gt; are something like a change that is proposed or expected. They are something that needs your attention and time to work on. Issues are created when, bugs are encountered, feature is supposed to be added and many more things. Commits are the changes you make.&lt;/p&gt;

&lt;p&gt;Coming to Pull requests 🤔no, we are not getting into that right now but, I promise we will come back to that.&lt;/p&gt;

&lt;h4&gt;
  
  
  HAVING YOUR OWN COPY OF THE REPO BY FORKING IT.
&lt;/h4&gt;

&lt;ol&gt;
&lt;li&gt; Now you need to switch to GitHub website to do this &amp;amp; hopefully you are logged in,&lt;/li&gt;
&lt;li&gt; Go to the repo you want to fork, and click on fork you can find that at top right corner I guess,&lt;/li&gt;
&lt;li&gt; Now you go to your GitHub profile, and click on repositories and you can see the forked repositories there.
MAKING A LOCAL COPY OF YOUR REPO… 👩‍💻 called as CLONE. 
If you are collaborating in a project then it’s a good idea to clone a forked 🍴 repo.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Side note: I hope you all are using VS code and git is installed in your PC or else you can use powershell /terminal too.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt; Open VS Code ,&lt;/li&gt;
&lt;li&gt; Go to Terminal at the navbar and click on New Terminal or click Ctrl + `&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;We must tell git who we are so, &lt;/p&gt;

&lt;p&gt;&lt;code&gt;$ git config --global user.name "YOURNAME"&lt;/code&gt;&lt;br&gt;
&lt;code&gt;$ git config --global user.email YOUREMAIL&lt;/code&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Now type    &lt;code&gt;$ cd ‘LOCATION YOU WANT TO CLONE THE REPO IN’&lt;/code&gt; and press enter &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Now, go to GitHub repository on the GitHub website, and click on clone or download and copy the URL.   &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Now type   &lt;code&gt;$ git clone THEURLYOUCOPIED&lt;/code&gt; and press enter.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Voila, you’ve successfully cloned the repo into your desired location.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;so, now you can see the files of your cloned repo in the explorer tab of the VS code.&lt;/p&gt;

&lt;h4&gt;
  
  
  PUSH &amp;amp; PULL  .
&lt;/h4&gt;

&lt;p&gt;&lt;strong&gt;Push&lt;/strong&gt; - pushing sends the recent commit history from your local repository up to GitHub. If you're the only one working on a repository, pushing is fairly simple. If there are others accessing the repository, you may need to pull before you can push.&lt;br&gt;
&lt;strong&gt;Pull&lt;/strong&gt; - a pull grabs any changes from the GitHub repository(remote) and merges them into your local repository.&lt;br&gt;
&lt;strong&gt;Commit&lt;/strong&gt; - committing is the process which records changes in the repository. Think of it as a snapshot of the current status of the project. Commits are done locally.&lt;br&gt;
First things first, I want y ’all to promise me that you will pull(or fetch)  before you push or make any commits!!!&lt;br&gt;
Just to make sure your local clone is updated with the remote repo.&lt;/p&gt;

&lt;p&gt;So, how to pull ⬅? &lt;br&gt;
In the terminal of VSC hope you are in the cloned directory; type   &lt;code&gt;$ git pull REMOTENAME BRANCHNAME&lt;/code&gt; &lt;br&gt;
and press enter that’s it!&lt;/p&gt;

&lt;p&gt;Now coming to how to push ➡? btw why we push?&lt;br&gt;
Suppose you make changes to the cloned repo in your local machine, you want those changes to reflect to the remote repo too, so you push.&lt;br&gt;
Let’s assume that I’ve made some changes to STANDARDS.md file in my local directory assuming that I am in my cloned repo location, here are the steps I follow for pushing it into the remote repo –&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt; Opening my terminal in VS code,&lt;/li&gt;
&lt;li&gt; Using the command &lt;code&gt;$ git init&lt;/code&gt; to initialize the files,&lt;/li&gt;
&lt;li&gt; Using  &lt;code&gt;$ git status&lt;/code&gt;  which shows a bunch of the changes which are not added and it’s asking me to add those,&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Now I type &lt;code&gt;$ git add ./STANDARDS.md&lt;/code&gt; to add the changes I’ve made to the staging area,&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Committing these changes by typing&lt;br&gt;
&lt;code&gt;$ git commit -m ‘MY DESCRIPTION TO THE CHANGES I’VE MADE’&lt;/code&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Pushing these changes to a branch of desired repo by typing- &lt;br&gt;
&lt;code&gt;$ git push REMOTENAME BRANCHNAME&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;You’ve successfully pushed the changes you’ve made.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h4&gt;
  
  
  WTF is REMOTE???? 🙄
&lt;/h4&gt;

&lt;p&gt;&lt;strong&gt;REMOTES&lt;/strong&gt; &lt;/p&gt;

&lt;p&gt;Here’s something I found on Stack overflow-&lt;br&gt;
As you probably know, git is a distributed version control system. Most operations are done locally. To communicate with the outside world, git uses what are called remotes. These are repositories other than the one on your local disk which you can push your changes into (so that other people can see them) or pull from (so that you can get others changes). &lt;br&gt;
Don’t worry, it will make more sense later.&lt;br&gt;
ADDING REMOTES …&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt; Before adding let’s view our remotes by typing   &lt;code&gt;$ git remote -v&lt;/code&gt;   in the VS Code terminal.&lt;/li&gt;
&lt;li&gt; You are able to see the HTTP links from where you cloned the repo.&lt;/li&gt;
&lt;li&gt; To add remotes, you type  &lt;code&gt;$ git remote add THENAMEYOUKEEP URLOFTHEREMOTE&lt;/code&gt; and obviously press enter after each command.&lt;/li&gt;
&lt;li&gt; Now view the remotes by typing the same command from the step 1.&lt;/li&gt;
&lt;li&gt; Voila you’ve added the remote.&lt;/li&gt;
&lt;/ol&gt;

&lt;h4&gt;
  
  
  SETTING UP A REMOTE UPSTREAM
&lt;/h4&gt;

&lt;p&gt;So, You’ve cloned the forked repo to your local machine, now you must set a &lt;strong&gt;God Father&lt;/strong&gt;  repo. GodFather repo or upstream is the repo that you forked from.&lt;br&gt;
Remote Upstream, is the remote that should be set if you want to avoid merge conflicts 😵. &lt;br&gt;
Now you already know how to setup REMOTES right?&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt; Type  &lt;code&gt;$ git remote add upstream URLOFTHEPARENTREPO&lt;/code&gt; that’s it. &lt;/li&gt;
&lt;li&gt; Now, type  &lt;code&gt;$ git remote -v&lt;/code&gt; to view your remotes and hopefully you can see your upstream there.
Before you start editing/working on your cloned repo, you must first pull from the upstream. 
How to do that? Simple, type &lt;code&gt;git pull upstream BRANCHNAME&lt;/code&gt; &lt;/li&gt;
&lt;/ol&gt;

&lt;h4&gt;
  
  
  BRANCHES?
&lt;/h4&gt;

&lt;p&gt;You can see the branches in the branch’s dropdown menu located at the left corner of the GitHub repo.&lt;br&gt;
You need to understand this workflow before,&lt;/p&gt;

&lt;p&gt;This thing happens in collaboration.&lt;br&gt;
You can view all the branches by typing  &lt;code&gt;$ git branches&lt;/code&gt; in your terminal of VSC. The branch denoted with * asterisk denotes the current branch you are working on.&lt;br&gt;
To switch to a particular branch, you can type   &lt;code&gt;$ git checkout BRANCHNAME&lt;/code&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  GIT FETCH?
&lt;/h4&gt;

&lt;p&gt;The &lt;strong&gt;git fetch&lt;/strong&gt; command downloads commits, files, and refs from a remote repository into your local repo. When downloading content from a remote repo, git pull and git fetch commands are available to accomplish the task. You can consider git fetch the 'safe' version of the two commands.&lt;/p&gt;

&lt;p&gt;git fetch basically makes another branch of the content you have fetched which you can merge later with a branch you like.&lt;br&gt;
You can use the git fetch command if you have a remote set up from which you fetch data.&lt;/p&gt;

&lt;p&gt;Command is simple-&lt;br&gt;
&lt;code&gt;$ git fetch REMOTENAME BRANCHNAME&lt;/code&gt;&lt;br&gt;
REMOTENAME- the remote’s name you want to fetch from.&lt;br&gt;
BRANCHNAME –the branch of the remote you want to fetch from.&lt;/p&gt;

&lt;p&gt;later you can preview the fetched branch and merge the two branches by using-&lt;br&gt;&lt;br&gt;
&lt;code&gt;$ git merge REMOTENAME/BRANCHNAME&lt;/code&gt;&lt;br&gt;
&lt;strong&gt;REMOTENAME&lt;/strong&gt;- the remote’s name you want to merge the fetched remote to.&lt;br&gt;
&lt;strong&gt;BRANCHNAME&lt;/strong&gt; –the branch of the remote you want to merge the fetched branch to.&lt;/p&gt;

&lt;h4&gt;
  
  
  PULL REQUESTS
&lt;/h4&gt;

&lt;p&gt;Now you have committed your every edit to your forked repo, you want to show the maintainers(one with write access) the changes you’ve made and you want them to make these changes to the original Godfather  repository too right?&lt;br&gt;
That’s when pull requests come into play.&lt;br&gt;
Now, how to do that? Simple,&lt;br&gt;
Go to your forked repository on the GitHub website, choose the branch that contains your commits, click on the Pull Requests tab at the top, then click on Create Pull Request.&lt;br&gt;
Look carefully at the branches and repos you want to make PR from and to. On the right you must have the branch &amp;amp; repo you have made the changes to by pushing from your local and on the left you have the so-called Godfather repository that you want to make Pull request  to.&lt;/p&gt;

&lt;p&gt;I hope you are clear with most of the basics of Git and GitHub.&lt;/p&gt;

&lt;p&gt;For more info-&lt;br&gt;
•  GitHub docs- &lt;a href="https://docs.github.com/en/"&gt;https://docs.github.com/en/&lt;/a&gt;&lt;br&gt;
•  Git docs- &lt;a href="https://git-scm.com/doc/"&gt;https://git-scm.com/doc/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;PS : While typing the commands ignore the &lt;code&gt;$&lt;/code&gt; symbol and type the rest of it.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;“The more I learn, the more I realize how much I don't know.”&lt;br&gt;
 &lt;em&gt;Albert Einstein&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

</description>
      <category>git</category>
      <category>github</category>
      <category>beginners</category>
      <category>tutorial</category>
    </item>
  </channel>
</rss>
