<?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: Mustapha DABELLA</title>
    <description>The latest articles on DEV Community by Mustapha DABELLA (@mustaphadabella).</description>
    <link>https://dev.to/mustaphadabella</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%2F378659%2F31a8f559-d2b8-4eef-ba7d-00272ddb4c47.jpeg</url>
      <title>DEV Community: Mustapha DABELLA</title>
      <link>https://dev.to/mustaphadabella</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mustaphadabella"/>
    <language>en</language>
    <item>
      <title>Push First Project to Github (First use of Git Bash)</title>
      <dc:creator>Mustapha DABELLA</dc:creator>
      <pubDate>Wed, 13 May 2020 15:38:53 +0000</pubDate>
      <link>https://dev.to/mustaphadabella/push-first-project-to-github-fist-use-of-git-bash-376l</link>
      <guid>https://dev.to/mustaphadabella/push-first-project-to-github-fist-use-of-git-bash-376l</guid>
      <description>&lt;p&gt;Today I will guide you to push your own local files to your GitHub as Repository so here simple steps:&lt;/p&gt;

&lt;p&gt;1- First of all, you have to create a GitHub account if you don't have one, then log in, after that you have to create your new repository.&lt;/p&gt;

&lt;p&gt;2- Give a Name to your repository (don't check: Initialize this repository with README.md if you want to add your own README) and click Create Repository.&lt;/p&gt;

&lt;p&gt;3- Download and install Git Bash and during installation, you can choose options that you prefer.&lt;/p&gt;

&lt;p&gt;4- Launch Git Bash Command Line and change the current directory to the location of your project files using this command: "cd" &lt;br&gt;
Example: &lt;i&gt;cd /Desktop/Projects/ProjectToPushToGithub&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;5- Type this command "&lt;i&gt;git init&lt;/i&gt;" (without double quotes) and hit enter and you will get a new folder named ".git".&lt;/p&gt;

&lt;p&gt;6- Run this command: &lt;i&gt;git remote add origin UrlOfYourRepository&lt;/i&gt;&lt;br&gt;
Example: &lt;i&gt; git remote add origin &lt;a href="https://github.com/mustaphadabella/BookPage.git"&gt;https://github.com/mustaphadabella/BookPage.git&lt;/a&gt;&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;7- Run This Command: &lt;i&gt;git push -u origin master&lt;/i&gt;&lt;br&gt;
If you get an error like this:&lt;br&gt;
&lt;i&gt;error: src refspec master does not match any&lt;br&gt;
error: failed to push some refs to '&lt;a href="https://github.com/mustaphadabella/BookPage.git"&gt;https://github.com/mustaphadabella/BookPage.git&lt;/a&gt;'&lt;/i&gt;&lt;/p&gt;

&lt;h5&gt;Solution of the error:&lt;/h5&gt;

&lt;p&gt;Run this command:  &lt;i&gt;git add -A&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;8- Run This Command to commit: &lt;i&gt;git commit -m 'initial commit'&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;9- Next Run This Command: &lt;i&gt;git push -u origin master&lt;/i&gt; &lt;br&gt;
note: if it's your first time a popup will display to login to your Github Account so you enter your email and password to log in to your account.&lt;/p&gt;

&lt;p&gt;10- Finally, Check your GitHub account you will find all your project files in your Repository. &lt;br&gt;
I hope this article was useful for you and HAPPY CODING!&lt;/p&gt;

</description>
      <category>git</category>
      <category>github</category>
      <category>firsttime</category>
      <category>gitbash</category>
    </item>
  </channel>
</rss>
