<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Git on Alok Regmi</title>
		<link>https://alokregmi.com/tags/git/</link>
		<description>Recent content in Git on Alok Regmi</description>
		<generator>Hugo</generator>
		<language>en-us</language>
		
		
		
		
			<lastBuildDate>Wed, 23 Sep 2020 21:58:34 +0545</lastBuildDate>
		
			<atom:link href="https://alokregmi.com/tags/git/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>Git Commands</title>
				<link>https://alokregmi.com/braindump/2020/09/git-commands/</link>
				<pubDate>Wed, 23 Sep 2020 21:58:34 +0545</pubDate>
				<guid>https://alokregmi.com/braindump/2020/09/git-commands/</guid>
				<description>&lt;p&gt;&amp;ndash;tags:  &lt;a href=&#34;../../braindump/2020/04/useful/&#34;&gt;Useful&lt;/a&gt;&#xA;&amp;ndash;references: &lt;a href=&#34;https://learngitbranching.js.org/&#34;&gt;https://learngitbranching.js.org/&lt;/a&gt;&lt;/p&gt;&#xA;&lt;h2 id=&#34;commands&#34;&gt;Commands&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;git add : tracking with git&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;git status : current status of tracked, untracked, changed, committed files.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;git add filename.extension&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;(only after making the file it can be done)&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;double add command - stages the new changes&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;git commit&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;git add . -&amp;gt; all files are committed&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;git add *.html -&amp;gt;only html files are committed&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;touch .gitignore&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;git branch Mybranch&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;git commit -m &amp;lsquo;commit command&amp;rsquo;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;git checkout master&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;git checkout Mybranch&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;git stash -&amp;gt; saves everything over a branch that can be applied later to it&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;come back and work continously into it: git stash apply&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;</description>
			</item>
			<item>
				<title>Gitconfig</title>
				<link>https://alokregmi.com/braindump/2020/09/gitconfig/</link>
				<pubDate>Sun, 13 Sep 2020 11:00:07 +0545</pubDate>
				<guid>https://alokregmi.com/braindump/2020/09/gitconfig/</guid>
				<description>&lt;h2 id=&#34;windows-git-config&#34;&gt;Windows Git Config&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;eval $(ssh-agent -s)&lt;/li&gt;&#xA;&lt;li&gt;ssh-add ~/.ssh/sshkey&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h3 id=&#34;add-ssh-key-in-one-command&#34;&gt;Add ssh key in one command&lt;/h3&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://www.howtogeek.com/168147/add-public-ssh-key-to-remote-server-in-a-single-command/&#34;&gt;https://www.howtogeek.com/168147/add-public-ssh-key-to-remote-server-in-a-single-command/&lt;/a&gt;&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;ssh-keygen -t rsa&lt;/li&gt;&#xA;&lt;li&gt;cat ~/.ssh/id_rsa.pub | ssh user@hostname &amp;lsquo;cat &amp;raquo; .ssh/authorized_keys&amp;rsquo;&#xA;Change id_rsa as per your key , user, hostname and you are good to go.&#xA;Need to restart ssh service though from server.&lt;/li&gt;&#xA;&lt;/ol&gt;</description>
			</item>
			<item>
				<title>Github Sec</title>
				<link>https://alokregmi.com/braindump/2020/04/github-sec/</link>
				<pubDate>Sun, 19 Apr 2020 16:00:35 +0545</pubDate>
				<guid>https://alokregmi.com/braindump/2020/04/github-sec/</guid>
				<description>&lt;p&gt;Steps to install and use all tools in Android 8.1:&lt;/p&gt;&#xA;&lt;p&gt;My specs:&#xA;Android 8.1&#xA;Kernel from kimocoder&amp;rsquo;s&#xA;Libraries built by myself&#xA;Hijacker modded for use&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;First install Nexmon app and install all tools in /system/xbin&lt;/li&gt;&#xA;&lt;li&gt;Copy the firmware from firmware folder and replace it in /vendor/firmware&lt;/li&gt;&#xA;&lt;li&gt;Place lib files from armeabi directory to /system/lib.&lt;/li&gt;&#xA;&lt;li&gt;Place lib files from arm64 to /system/lib64&lt;/li&gt;&#xA;&lt;li&gt;Download hijacker modded apk for usage. * Note: You need to turn wifi on first here.&lt;/li&gt;&#xA;&lt;/ol&gt;</description>
			</item>
	</channel>
</rss>
