Posts in 2021
-
Most votes on git questions 2
May 01, 2021 in FAQ
Most votes on git questions 2. #11 How to make Git "forget" about a file that was tracked but is now in .gitignore? #12 Move the most recent commit(s) to a new branch with Git #13 How do I discard unstaged changes in Git? #14 How to resolve merge conflicts in Git repository? #15 How can I reset or revert a file to a specific revision? #16 How do I push a new local branch to a remote Git repository and track it too? #17 How can I add an empty directory to a Git repository? #18 How can I determine the URL that a local Git repository was originally cloned from? #19 How to change the URI (URL) for a remote Git repository? #20 Reset local repository branch to be just like remote repository HEAD
Read all the top votes questions and answers in a single page. #11: How to make Git "forget" about a file that was tracked but is now in .gitignore? (Score: 6221) Created: 2009-08-13 Last updated: 2017-12-20 Tags: git, gitignore, git-rm …
-
Most votes on git questions 10
May 01, 2021 in FAQ
Most votes on git questions 10. #91 How to save username and password in Git? #92 When do you use Git rebase instead of Git merge? #93 How do you stash an untracked file? #94 How to name and retrieve a stash by name in git? #95 How do I fix a Git detached head? #96 Warning: push.default is unset; its implicit value is changing in Git 2.0 #97 How can I reconcile detached HEAD with master/origin? #98 How can I delete all of my Git stashes at once? #99 How can I view an old version of a file with Git? #100 .gitignore is ignored by Git
Read all the top votes questions and answers in a single page. #91: How to save username and password in Git? (Score: 1703) Created: 2016-03-11 Last updated: 2020-11-01 Tags: git, credentials, git-config, git-extensions I want to use a push and pull …
-
Most votes on git questions 1
May 01, 2021 in FAQ
Most votes on git questions 1. #1 How do I undo the most recent local commits in Git? #2 How do I delete a Git branch locally and remotely? #3 What is the difference between 'git pull' and 'git fetch'? #4 How do I undo 'git add' before commit? #5 How do I rename a local Git branch? #6 How do I force "git pull" to overwrite local files? #7 How to modify existing, unpushed commit messages? #8 How do I revert a Git repository to a previous commit? #9 How do I check out a remote Git branch? #10 How to remove local (untracked) files from the current Git working tree
Read all the top votes questions and answers in a single page. #1: How do I undo the most recent local commits in Git? (Score: 22579) Created: 2009-05-29 Last updated: 2020-11-03 Tags: git, version-control, git-commit, undo I accidentally committed …
-
Most votes on gcc questions 9
May 01, 2021 in FAQ
Most votes on gcc questions 9. #81 Telling gcc directly to link a library statically #82 How to suppress GCC warnings from library headers? #83 What are the GCC default include directories? #84 What are the differences between -std=c++11 and -std=gnu++11? #85 Is using an outdated C compiler a security risk? #86 Static link of shared library function in gcc #87 How to specify new GCC path for CMake #88 LLVM vs clang on OS X #89 What is the use of _start() in C? #90 /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found
Read all the top votes questions and answers in a single page. #81: Telling gcc directly to link a library statically (Score: 147) Created: 2011-07-05 Last updated: 2011-07-05 Tags: gcc, linker, static-libraries, dynamic-linking It feels strange to …
-
Most votes on gcc questions 8
May 01, 2021 in FAQ
Most votes on gcc questions 8. #71 Why does flowing off the end of a non-void function without returning a value not produce a compiler error? #72 Why does this loop produce "warning: iteration 3u invokes undefined behavior" and output more than 4 lines? #73 What are the useful GCC flags for C? #74 brew install gcc too time consuming #75 How do you use gcc to generate assembly code in Intel syntax? #76 What is the advantage of GCC's __builtin_expect in if else statements? #77 What is the purpose of using -pedantic in GCC/G++ compiler? #78 mingw-w64 threads: posix vs win32 #79 How to compile a static library in Linux? #80 Why does the enhanced GCC 6 optimizer break practical C++ code?
Read all the top votes questions and answers in a single page. #71: Why does flowing off the end of a non-void function without returning a value not produce a compiler error? (Score: 164) Created: 2009-10-22 Last updated: 2019-03-08 Tags: c++, c, …
-
Most votes on gcc questions 7
May 01, 2021 in FAQ
Most votes on gcc questions 7. #61 Error "gnu/stubs-32.h: No such file or directory" while compiling Nachos source code #62 LD_LIBRARY_PATH vs LIBRARY_PATH #63 ld cannot find an existing library #64 An expensive jump with GCC 5.4.0 #65 Is gcc's attribute((packed)) / #pragma pack unsafe? #66 Make install, but not to default directories? #67 warning: incompatible implicit declaration of built-in function ‘xyz’ #68 Warning/error "function declaration isn't a prototype" #69 What does gcc's ffast-math actually do? #70 How to print the ld(linker) search path
Read all the top votes questions and answers in a single page. #61: Error "gnu/stubs-32.h: No such file or directory" while compiling Nachos source code (Score: 173) Created: 2011-09-14 Last updated: 2014-04-09 Tags: ubuntu, gcc, mips, …
-
Most votes on gcc questions 6
May 01, 2021 in FAQ
Most votes on gcc questions 6. #51 Where does gcc look for C and C++ header files? #52 Is errno thread-safe? #53 Build .so file from .c file using gcc command line #54 Why does GCC generate such radically different assembly for nearly the same C code? #55 Multiple glibc libraries on a single host #56 How to generate gcc debug symbol outside the build target? #57 Clang vs GCC for my Linux Development project #58 "/usr/bin/ld: cannot find -lz" #59 Can't compile C program on a Mac after upgrade to Mojave #60 How to see which flags -march=native will activate?
Read all the top votes questions and answers in a single page. #51: Where does gcc look for C and C++ header files? (Score: 195) Created: 2008-12-05 Last updated: 2017-03-09 Tags: c, gcc, header On a Unix system, where does gcc look for header files? …
-
Most votes on gcc questions 5
May 01, 2021 in FAQ
Most votes on gcc questions 5. #41 std::vector performance regression when enabling C++11 #42 Modulo operation with negative numbers #43 How to suppress "unused parameter" warnings in C? #44 Objective-C for Windows #45 typedef fixed length array #46 libpthread.so.0: error adding symbols: DSO missing from command line #47 How do I install imagemagick with homebrew? #48 How to turn on (literally) ALL of GCC's warnings? #49 Disable all gcc warnings #50 Realistic usage of the C99 'restrict' keyword?
Read all the top votes questions and answers in a single page. #41: std::vector performance regression when enabling C++11 (Score: 235) Created: 2014-01-07 Last updated: 2014-01-07 Tags: c++, performance, gcc, c++11, vector I have found an …
-
Most votes on gcc questions 4
May 01, 2021 in FAQ
Most votes on gcc questions 4. #31 Can't install Ruby under Lion with RVM – GCC issues #32 I don't understand -Wl,-rpath -Wl, #33 GCC dump preprocessor defines #34 How do I best silence a warning about unused variables? #35 Clang vs GCC - which produces faster binaries? #36 Inheriting constructors #37 How to disable GCC warnings for a few lines of code #38 What is makeinfo, and how do I get it? #39 Why does GCC use multiplication by a strange number in implementing integer division? #40 undefined reference to 'std::cout'
Read all the top votes questions and answers in a single page. #31: Can't install Ruby under Lion with RVM – GCC issues (Score: 268) Created: 2011-11-07 Last updated: 2012-08-25 Tags: ruby, gcc, rvm, osx-lion, xcode4.2 Most questions regarding this …
-
Most votes on gcc questions 3
May 01, 2021 in FAQ
Most votes on gcc questions 3. #21 How do the likely/unlikely macros in the Linux kernel work and what is their benefit? #22 How exactly does attribute((constructor)) work? #23 This C function should always return false, but it doesn’t #24 How do I force make/GCC to show me the commands? #25 How to add a default include path for GCC in Linux? #26 How to use/install gcc on Mac OS X 10.8 / Xcode 4.4 #27 Is bool a native C type? #28 Removing trailing newline character from fgets() input #29 Using GCC to produce readable assembly? #30 Constructor initialization-list evaluation order
Read all the top votes questions and answers in a single page. #21: How do the likely/unlikely macros in the Linux kernel work and what is their benefit? (Score: 380) Created: 2008-09-20 Last updated: 2019-04-17 Tags: linux, gcc, linux-kernel, …