DEV Community

Rohit More
Rohit More

Posted on

1

๐Ÿฒ ๐—š๐—ถ๐˜ ๐—ต๐—ฎ๐—ฐ๐—ธ๐˜€ ๐˜†๐—ผ๐˜‚ ๐˜€๐—ต๐—ผ๐˜‚๐—น๐—ฑ ๐—ฑ๐—ฒ๐—ณ๐—ถ๐—ป๐—ถ๐˜๐—ฒ๐—น๐˜† ๐—ธ๐—ป๐—ผ๐˜„๐Ÿš€

๐Ÿญ. ๐— ๐—ผ๐—ฑ๐—ถ๐—ณ๐˜† ๐˜๐—ต๐—ฒ ๐—บ๐—ผ๐˜€๐˜ ๐—ฟ๐—ฒ๐—ฐ๐—ฒ๐—ป๐˜ ๐—ฐ๐—ผ๐—บ๐—บ๐—ถ๐˜

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.

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more