<div dir="ltr" style="text-align: justify;">
<p>Step for existing project to GitHub using command line, following steps are required to this.</p>
<p><b>Step 1:</b> Creating an account to the GitHub. Suppose<br />
<b>Username for GitHub:</b> myGitUser<br />
<b>Password for GitHub:</b> myGitPassword</p>
<p><i>https://github.com/myGitUser/</i></p>
<p><b>Step 2: </b>Access above url using mention username and password.</p>
<p><b>Step 3:</b> Create New Repository to your account. To avoid errors, do not initialize the new repository with README. You can add these files after your project has been pushed to GitHub.</p>
<p>Suppose your repository name: <b>myRepository</b></p>
<p><i>https://github.com/myGitUser/myRepository</i></p>
<div id="ads-id" align="center"></div>
<p><b>Step 4:</b> Installing GitBash to you machine. for this link <a href="http://git-scm.com/download/win" target="_blank" rel="noopener">http://git-scm.com/download/win</a></p>
<p><b>Step 5:</b> After installing GitBash open the command prompt for Git.</p>
<div class="separator" style="clear: both; text-align: center;"><img src="https://dineshonjava.com/wp-content/uploads/2015/03/GitShell.png" border="0" /></div>
<p><b>Step 6:</b> In the Command prompt, change the current working directory to your local project.</p>
<p><b>Step 7:</b> Initialize the local directory as a Git repository. As follows</p>
<div class="separator" style="clear: both; text-align: center;"><img src="https://dineshonjava.com/wp-content/uploads/2015/03/git-init.png" border="0" /></div>
<p><b>Step 8:</b> Add the files in your new local repository. This stages them for the first commit.</p>
<div class="separator" style="clear: both; text-align: center;"><img src="https://dineshonjava.com/wp-content/uploads/2015/03/git-add.png" border="0" /></div>
<p><b>Step 9: </b>Commit the files that you&#8217;ve staged in your local repository.</p>
<div class="separator" style="clear: both; text-align: center;"><img src="https://dineshonjava.com/wp-content/uploads/2015/03/git-commit.png" border="0" /></div>
<p>Commits the tracked changes and prepares them to be pushed to a remote repository</p>
<p><b>Step 10:</b> At the top of your GitHub repository&#8217;s Quick Setup page, click to copy the remote repository URL</p>
<p><i>https://github.com/myGitUser/myRepository.git</i></p>
<p><b>Step 11: </b> In the Command prompt, add the URL for the remote repository where your local repository will be pushed</p>
<div class="separator" style="clear: both; text-align: center;"><img src="https://dineshonjava.com/wp-content/uploads/2015/03/git-remote.png" border="0" /></div>
<p># Sets the new remote</p>
<p><b>Step 12:</b> Push the changes in your local repository to GitHub.</p>
<div class="separator" style="clear: both; text-align: center;"><img src="https://dineshonjava.com/wp-content/uploads/2015/03/git-push.png" border="0" /></div>
<p># Pushes the changes in your local repository up to the remote repository you specified as the origin</p>
<p> ;</p>
</div>
<div class="wp-post-navigation"> 
									 <div class="wp-post-navigation-pre"> 
									 
									 </div> 
									 <div class="wp-post-navigation-next"> 
									 <a href="https://dineshonjava.com/difference-between-git-add-a-and-git-add-dot-and-git-u/">Next</a> 
									 </div> 
									</div>
<script type="text/javascript">
jQuery(document).ready(function($) {
 $.post('https://dineshonjava.com/wp-admin/admin-ajax.php', {action: 'mts_view_count', id: '164'});
});
</script>
Strategy Design Patterns We can easily create a strategy design pattern using lambda. To implement…
Decorator Pattern A decorator pattern allows a user to add new functionality to an existing…
Delegating pattern In software engineering, the delegation pattern is an object-oriented design pattern that allows…
Technology has emerged a lot in the last decade, and now we have artificial intelligence;…
Managing a database is becoming increasingly complex now due to the vast amount of data…
Overview In this article, we will explore Spring Scheduler how we could use it by…