Movatterモバイル変換


[0]ホーム

URL:


Skip to content
DEV Community
Log in Create account

DEV Community

Ahmed Khaled MOhamed
Ahmed Khaled MOhamed

Posted on • Edited on

     

My Git Hot Commands

1--git log --pretty=format: --name-only --author="aa-ahmed-aa" --since="2 days ago" | sort | uniq
display the files modified by specific Author users within the Since time period

2--git fetch origin
3--git reset --hard origin/master
fetch the remote origin and hard reset your current with the remote (reset everything like the remote)

4--git log -p --author=aa-ahmed-aa
get a very detailed information about the files edited by the Author with all the insertion and deletion files

5--git commit -m "adding the images" *.jpg
this is adding commit message to images only (add files by name if you want)
and if you push them it will only push the commited files

6--git stash to save you current working directory changes to a specific point if you want to reset to master without losing changes
git stash list to list all of your stashed points

7-- 'git clean -d -x -f ' to remove the untracked files
be careful when using this command because it will erase all the untracked files even if this files is still used in your project
*this list is daily updated.

8-- 'git merge --abort' to revert back from the merging status

Top comments(0)

Subscribe
pic
Create template

Templates let you quickly answer FAQs or store snippets for re-use.

Dismiss

Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment'spermalink.

For further actions, you may consider blocking this person and/orreporting abuse

Php, Python, JS, Lua, C/C++
  • Location
    Egypt, Cairo
  • Joined

Trending onDEV CommunityHot

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

Log in Create account

[8]ページ先頭

©2009-2025 Movatter.jp