Skip to content

vikasd989/git_quiz_vikas

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

TechRacers Git Quiz

N|Solid

Problems

1. Change author and committer name of multiple commits.

Commits Messages Author/Commiter
ad7a9e1 (HEAD -> master) Added some new paragraph Shivam Jaiswal <[email protected]>
4cd4658 Changed some Data Shivam Jaiswal <[email protected]>
fec1146 Replaced whole data Shivam Jaiswal <[email protected]>
b52c62d Added another paragraph Shivam Jaiswal <[email protected]>
e9f2d8e Added Dummy Data to file Shivam Jaiswal <[email protected]>
0b7fc5d Added Html Data to index.html Shivam Jaiswal <[email protected]>
3f85dad Added index.html Shivam Jaiswal <[email protected]>

Make it like

Commits Messages Author/Commiter
ad7a9e1 (HEAD -> master) Added some new paragraph Your Name <[email protected]>
4cd4658 Changed some Data Your Name <[email protected]>
fec1146 Replaced whole data Your Name <[email protected]>
b52c62d Added another paragraph Your Name <[email protected]>
e9f2d8e Added Dummy Data to file Your Name <[email protected]>
0b7fc5d Added Html Data to index.html Your Name <[email protected]>
3f85dad Added index.html Your Name <[email protected]>

2. Bring back all changes back from listed commits without using git reset

Commits Messages Author/Commiter
ad7a9e1 Added some new paragraph Shivam Jaiswal <[email protected]>
4cd4658 Changed some Data Shivam Jaiswal <[email protected]>

3. Create new branch

Make a new branch from branch 1 with Added Second File commit as a HEAD and get Added Third File and Added Fourth File commit of branch 2 and branch 3 on newly created branch.

staging

	Added Eigth File    HEAD -> staging
		|
		|
		|
	Added Second File
		|
		|
		|
	Added First File

develop

	Added Sixth File    HEAD -> develop
		|
		|
		|
	Added Fourth File
		|
		|
		|
        Added Seventh File

hot_fixes

	Added Third File    HEAD -> hot_fixes
		|
		|
		|
	Added Ninth File
		|
		|
		|
	Added Fifth File

New Branch should look like this and have following commits.

new_branch


	Added Fourth File    HEAD -> new_branch
		|
		|
		|
	Added Third File
		|
		|
		|
	Added Second File
		|
		|
		|
	Added First File

About

Git test

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages