git - How to abandon changes? -


i work openssl's git repo. 1 of things test changes against clean copy issuing make clean; make dclean.

when performs git pull, git fails because of developer cruft that's removed dclean (see below). when fails, git tells me "commit changes or stash changes...". i'm not interested in committing, saving or stashing them. rather, i'd abandon them.

git abandon not command. command abandon changes?


a related question how discard unstaged changes in git?. answer stash them (if read question, see none of answers answers question). i'm not interested in stashing or saving them. want abandon them can git pull , go work.


$ git pull remote: counting objects: 2069, done. remote: compressing objects: 100% (872/872), done. remote: total 2069 (delta 1022), reused 589 (delta 589), pack-reused 608 receiving objects: 100% (2069/2069), 3.13 mib | 1.59 mib/s, done. resolving deltas: 100% (1272/1272), done. https://github.com/openssl/openssl    c40dba9..e0f9bf1  master     -> origin/master    8a09500..d8a2353  openssl-fips-2_0-dev -> origin/openssl-fips-2_0-dev    155ca14..f16093d  openssl_0_9_8-stable -> origin/openssl_0_9_8-stable    690d040..aaa654d  openssl_1_0_0-stable -> origin/openssl_1_0_0-stable    76b49a8..cc74177  openssl_1_0_1-stable -> origin/openssl_1_0_1-stable    c59bd61..4d9dc0c  openssl_1_0_2-stable -> origin/openssl_1_0_2-stable  * [new tag]         openssl-fips-2_0_9 -> openssl-fips-2_0_9 updating c40dba9..e0f9bf1 error: local changes following files overwritten merge:     crypto/aes/makefile     crypto/asn1/makefile     crypto/bf/makefile     crypto/bio/makefile     crypto/buffer/makefile     crypto/camellia/makefile     crypto/cast/makefile     crypto/cmac/makefile     crypto/cms/makefile     crypto/conf/makefile     crypto/des/makefile     crypto/dh/makefile     crypto/dsa/makefile     crypto/dso/makefile     crypto/ecdh/makefile     crypto/ecdsa/makefile     crypto/engine/makefile     crypto/err/makefile     crypto/evp/makefile     crypto/hmac/makefile     crypto/idea/makefile     crypto/lhash/makefile     crypto/md4/makefile     crypto/md5/makefile     crypto/mdc2/makefile     crypto/modes/makefile     crypto/ocsp/makefile     crypto/pem/makefile     crypto/pkcs12/makefile     crypto/pkcs7/makefile     crypto/pqueue/makefile     crypto/rand/makefile     crypto/rc2/makefile     crypto/rc4/makefile     crypto/ripemd/makefile     crypto/seed/makefile     crypto/sha/makefile     crypto/srp/makefile     crypto/stack/makefile     crypto/ts/makefile     crypto/txt_db/makefile     crypto/ui/makefile     crypto/whrlpool/makefile     crypto/x509/makefile     engines/makefile please, commit changes or stash them before can merge. aborting 

to sync head, it's

git reset --hard head 

Comments

Popular posts from this blog

node.js - Using Node without global install -

How to access a php class file from PHPFox framework into javascript code written in simple HTML file? -

java - Null response to php query in android, even though php works properly -