Post

2021-03-18-TIL

2021-03-18-TIL

공부 링크

  • https://github.com/next-step/
  • https://steady-coding.tistory.com/

원하지 않는 커밋, 파일을 완전히 제거하는 방법

  • https://docs.github.com/en/github/authenticating-to-github/removing-sensitive-data-from-a-repository
  • https://rtyley.github.io/bfg-repo-cleaner/
  • https://stackoverflow.com/questions/38424619/bfg-repo-cleaner-states-my-github-repo-is-not-a-valid-git-repository
  • https://about.gitlab.com/blog/2018/06/07/keeping-git-commit-history-clean/#situation-3-i-need-to-add-remove-or-combine-commits
  • https://git-scm.com/docs/git-rebase
  • https://yunwuxin1.gitbooks.io/git/content/mk/f88c8343811d5a9d29a5b95eff46c26c/fb772b7d14da5aaa9e7dc1d4f351efd7.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
 ~/Desktop/untitled folder/test  java -jar bfg-1.14.0.jar --delete-files 2021-03-15-TIL.md polynomeer.github.io.git

Using repo : /Users/ham/Desktop/untitled folder/test/polynomeer.github.io.git

Found 323 objects to protect
Found 2 commit-pointing refs : HEAD, refs/heads/main

Protected commits
-----------------

These are your protected commits, and so their contents will NOT be altered:

 * commit 5803b18a (protected by 'HEAD') - contains 1 dirty file :
	- TIL/2021-TIL/2021-03-TIL/2021-03-15-TIL.md (2.5 KB)

WARNING: The dirty content above may be removed from other commits, but as
the *protected* commits still use it, it will STILL exist in your repository.

Details of protected dirty content have been recorded here :

/Users/ham/Desktop/untitled folder/test/polynomeer.github.io.git.bfg-report/2021-03-18/17-21-28/protected-dirt/

If you *really* want this content gone, make a manual commit that removes it,
and then run the BFG on a fresh copy of your repo.


Cleaning
--------

Found 96 commits
Cleaning commits:       100% (96/96)
Cleaning commits completed in 83 ms.

Updating 1 Ref
--------------

	Ref               Before     After
	-------------------------------------
	refs/heads/main | 5803b18a | 00750bd2

Updating references:    100% (1/1)
...Ref update completed in 20 ms.

Commit Tree-Dirt History
------------------------

	Earliest                                              Latest
	|                                                          |
	...........................................................D

	D = dirty commits (file tree fixed)
	m = modified commits (commit message or parents changed)
	. = clean commits (no changes to file tree)

	                        Before     After
	-------------------------------------------
	First modified commit | 4b6755df | 7b6836e4
	Last dirty commit     | 4b6755df | 7b6836e4

Deleted files
-------------

	Filename            Git id
	-------------------------------------
	2021-03-15-TIL.md | dd40ee9a (2.5 KB)


In total, 6 object ids were changed. Full details are logged here:

	/Users/ham/Desktop/untitled folder/test/polynomeer.github.io.git.bfg-report/2021-03-18/17-21-28

BFG run is complete! When ready, run: git reflog expire --expire=now --all && git gc --prune=now --aggressive
 ~/Desktop/untitled folder/test  git push --force                                                               ✔  3476  17:21:38
fatal: not a git repository (or any of the parent directories): .git
 ~/Desktop/untitled folder/test  cd ./polynomeer.github.io.git                                              128 ↵  3477  17:21:59
 ~/Desktop/untitled folder/test/polynomeer.github.io.git   main  git push --force                             ✔  3478  17:22:05
Enumerating objects: 14, done.
Counting objects: 100% (14/14), done.
Delta compression using up to 16 threads
Compressing objects: 100% (10/10), done.
Writing objects: 100% (10/10), 5.04 KiB | 5.04 MiB/s, done.
Total 10 (delta 3), reused 5 (delta 0)
remote: Resolving deltas: 100% (3/3), completed with 3 local objects.
To https://github.com/Polynomeer/polynomeer.github.io.git
 + 5803b18...00750bd main -> main (forced update)
 ~/Desktop/untitled folder/test/polynomeer.github.io.git   main 

https://stackoverflow.com/questions/6007219/how-to-add-default-value-for-html-textarea

This post is licensed under CC BY 4.0 by the author.