DEV Community

Rohit More
Rohit More

Posted on

ðŸē 𝗚ð—ķ𝘁 ð—ĩð—Ū𝗰ð—ļ𝘀 𝘆𝗞𝘂 𝘀ð—ĩ𝗞𝘂ð—đð—ą ð—ąð—ēð—ģð—ķð—ŧð—ķ𝘁ð—ēð—đ𝘆 ð—ļð—ŧ𝗞𝘄🚀

𝟭. ð— ð—žð—ąð—ķð—ģ𝘆 𝘁ð—ĩð—ē 𝗚𝗞𝘀𝘁 ð—ŋð—ē𝗰ð—ēð—ŧ𝘁 𝗰𝗞𝗚𝗚ð—ķ𝘁

use git commit --amend

ðŸŪ. 𝗙ð—ķð—ŧð—ą ð—Ŋð—ŋð—Ūð—ŧ𝗰ð—ĩð—ēs ð—Ŋ𝘆 𝗰𝗞𝗚𝗚ð—ķ𝘁

use git branch --contains

ðŸŊ. ð—Ĩð—ē𝗚𝗞𝘃ð—ē ð—ģð—ķð—đð—ē ð—ģð—ŋ𝗞𝗚 𝘁ð—ĩð—ē ð—đð—Ū𝘀𝘁 𝗰𝗞𝗚𝗚ð—ķ𝘁

use git rm --cached
followed by git commit --amend

𝟰. ð—Ĩð—ēð—ŧð—Ū𝗚ð—ē ð—Ŋð—ŋð—Ūð—ŧ𝗰ð—ĩð—ē𝘀 ð—đ𝗞𝗰ð—Ūð—đð—đ𝘆

use git branch -m old-name new-name
For more information type
git help branch

ðŸą. 𝗊ð—ĩð—Ū𝘁 𝗰ð—ĩð—Ūð—ŧð—īð—ēð—ą ð—ķð—ŧ ð—Ū ð˜€ð—―ð—Ūð—ŧ 𝗞ð—ģ 𝘁ð—ķ𝗚ð—ē

use git whatchanged --since="2 weeks ago"

ðŸē. 𝗧ð—ķ𝗚ð—ē 𝘁ð—ŋð—Ū𝘃ð—ēð—đð—ķð—ŧð—ī 𝘂𝘀ð—ķð—ŧð—ī 𝗚𝗜𝗧

use git reflog
It shows you the list of all the things you've done so far.

Latest comments (0)