BIN
assets/images/help/repository/raw-file-button.png
Normal file
BIN
assets/images/help/repository/raw-file-button.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 6.1 KiB |
@@ -8,7 +8,7 @@ versions:
|
||||
ghec: '*'
|
||||
children:
|
||||
- /navigating-code-on-github
|
||||
- /tracking-changes-in-a-file
|
||||
- /viewing-a-file
|
||||
- /getting-permanent-links-to-files
|
||||
- /working-with-non-code-files
|
||||
---
|
||||
|
||||
@@ -1,12 +1,13 @@
|
||||
---
|
||||
title: Tracking changes in a file
|
||||
intro: You can trace changes to lines in a file and discover how parts of the file evolved over time.
|
||||
title: Viewing a file
|
||||
intro: You can view raw file content or trace changes to lines in a file and discover how parts of the file evolved over time.
|
||||
redirect_from:
|
||||
- /articles/using-git-blame-to-trace-changes-in-a-file
|
||||
- /articles/tracing-changes-in-a-file
|
||||
- /articles/tracking-changes-in-a-file
|
||||
- /github/managing-files-in-a-repository/tracking-changes-in-a-file
|
||||
- /github/managing-files-in-a-repository/managing-files-on-github/tracking-changes-in-a-file
|
||||
- /repositories/working-with-files/using-files/tracking-changes-in-a-file
|
||||
versions:
|
||||
fpt: '*'
|
||||
ghes: '*'
|
||||
@@ -14,8 +15,20 @@ versions:
|
||||
ghec: '*'
|
||||
topics:
|
||||
- Repositories
|
||||
shortTitle: Track file changes
|
||||
shortTitle: View files and track file changes
|
||||
---
|
||||
## Viewing or copying the raw file content
|
||||
|
||||
With the raw view, you can view or copy the raw content of a file without any styling.
|
||||
|
||||
{% data reusables.repositories.navigate-to-repo %}
|
||||
1. Click the file that you want to view.
|
||||
2. In the upper-right corner of the file view, click **Raw**.
|
||||

|
||||
3. Optionally, to copy the raw file content, in the upper-right corner of the file view, click **{% octicon "copy" aria-label="The copy icon" %}**.
|
||||
|
||||
## Viewing the line-by-line revision history for a file
|
||||
|
||||
With the blame view, you can view the line-by-line revision history for an entire file, or view the revision history of a single line within a file by clicking {% octicon "versions" aria-label="The prior blame icon" %}. Each time you click {% octicon "versions" aria-label="The prior blame icon" %}, you'll see the previous revision information for that line, including who committed the change and when.
|
||||
|
||||

|
||||
@@ -1,37 +0,0 @@
|
||||
---
|
||||
title: Rastrear cambios en un archivo
|
||||
intro: Puedes rastrear cambios de líneas en un archivo y descubrir la manera en que las partes del archivo fueron evolucionando.
|
||||
redirect_from:
|
||||
- /articles/using-git-blame-to-trace-changes-in-a-file
|
||||
- /articles/tracing-changes-in-a-file
|
||||
- /articles/tracking-changes-in-a-file
|
||||
- /github/managing-files-in-a-repository/tracking-changes-in-a-file
|
||||
- /github/managing-files-in-a-repository/managing-files-on-github/tracking-changes-in-a-file
|
||||
versions:
|
||||
fpt: '*'
|
||||
ghes: '*'
|
||||
ghae: '*'
|
||||
ghec: '*'
|
||||
topics:
|
||||
- Repositories
|
||||
shortTitle: Rastrar cambios en los archivos
|
||||
---
|
||||
|
||||
Con la vista de último responsable, puedes ver el historial de revisión línea por línea para todo un archivo o ver el historial de revisión de una única línea dentro de un archivo haciendo clic en {% octicon "versions" aria-label="The prior blame icon" %}. Cada vez que hagas clic en {% octicon "versions" aria-label="The prior blame icon" %}, verás la información de revisión anterior para esa línea, incluido quién y cuándo confirmó el cambio.
|
||||
|
||||

|
||||
|
||||
En un archivo o solicitud de extracción, también puedes utilizar el menú {% octicon "kebab-horizontal" aria-label="The horizontal kebab octicon" %} para ver el último responsable de Git para una línea o rango de líneas seleccionado.
|
||||
|
||||

|
||||
|
||||
{% tip %}
|
||||
|
||||
**Sugerencia:** En la línea de comando, también puedes utilizar `git blame` para ver el historial de revisión de líneas dentro de un archivo. Para obtener más información, consulta la documentación de [ `git blame`](https://git-scm.com/docs/git-blame) de Git.
|
||||
|
||||
{% endtip %}
|
||||
|
||||
{% data reusables.repositories.navigate-to-repo %}
|
||||
2. Haz clic para abrir el archivo cuyo historial de líneas quieres ver.
|
||||
3. En la esquina superior derecha de la vista del archivo, haz clic en **Blame** (Último responsable) para abrir la vista del último responsable. 
|
||||
4. Para ver versiones anteriores de una línea específica, o el siguiente último responsable, haz clic en {% octicon "versions" aria-label="The prior blame icon" %} hasta que hayas encontrado los cambios que quieres ver. 
|
||||
@@ -1,37 +0,0 @@
|
||||
---
|
||||
title: ファイルの変更を追跡する
|
||||
intro: ファイルの行に対する変更を追跡し、時間の経過とともにファイルの各部分がどのように変化したのかを追跡できます。
|
||||
redirect_from:
|
||||
- /articles/using-git-blame-to-trace-changes-in-a-file
|
||||
- /articles/tracing-changes-in-a-file
|
||||
- /articles/tracking-changes-in-a-file
|
||||
- /github/managing-files-in-a-repository/tracking-changes-in-a-file
|
||||
- /github/managing-files-in-a-repository/managing-files-on-github/tracking-changes-in-a-file
|
||||
versions:
|
||||
fpt: '*'
|
||||
ghes: '*'
|
||||
ghae: '*'
|
||||
ghec: '*'
|
||||
topics:
|
||||
- Repositories
|
||||
shortTitle: Track file changes
|
||||
---
|
||||
|
||||
Blame ビューでは、{% octicon "versions" aria-label="The prior blame icon" %} をクリックすることで、ファイル全体の行ごとのリビジョン履歴やファイル内の 1 つの行のリビジョン履歴を表示することができます。 {% octicon "versions" aria-label="The prior blame icon" %} をクリックするたびに、変更をコミットした者と時間を含む、その行の過去のリビジョン情報が表示されます。
|
||||
|
||||

|
||||
|
||||
ファイルやプルリクエストでは、{% octicon "kebab-horizontal" aria-label="The horizontal kebab octicon" %} メニューを使って、選択した行や行の範囲の Git blame を表示することもできます。
|
||||
|
||||

|
||||
|
||||
{% tip %}
|
||||
|
||||
**ヒント:** コマンドライン上で、ファイル内の行のリビジョン履歴を表示するために `git blame` を使うこともできます。 詳細は [Git の `git blame` のドキュメンテーション](https://git-scm.com/docs/git-blame)を参照してください。
|
||||
|
||||
{% endtip %}
|
||||
|
||||
{% data reusables.repositories.navigate-to-repo %}
|
||||
2. クリックして、表示したい行の履歴のファイルを開きます。
|
||||
3. ファイルビューの右上隅で [**Blame**] をクリックして blame ビューを開きます。 ![[Blame] ボタン](/assets/images/help/repository/blame-button.png)
|
||||
4. 特定の行の過去のリビジョンを表示するには、見てみたい変更が見つかるまで {% octicon "versions" aria-label="The prior blame icon" %} をクリックします。 
|
||||
@@ -1,37 +0,0 @@
|
||||
---
|
||||
title: Controlar as alterações em um arquivo
|
||||
intro: É possível controlar as alterações em linhas de um arquivo e descobrir como as partes do arquivo evoluíram ao longo do tempo.
|
||||
redirect_from:
|
||||
- /articles/using-git-blame-to-trace-changes-in-a-file
|
||||
- /articles/tracing-changes-in-a-file
|
||||
- /articles/tracking-changes-in-a-file
|
||||
- /github/managing-files-in-a-repository/tracking-changes-in-a-file
|
||||
- /github/managing-files-in-a-repository/managing-files-on-github/tracking-changes-in-a-file
|
||||
versions:
|
||||
fpt: '*'
|
||||
ghes: '*'
|
||||
ghae: '*'
|
||||
ghec: '*'
|
||||
topics:
|
||||
- Repositories
|
||||
shortTitle: Rastrear alterações do arquivo
|
||||
---
|
||||
|
||||
Com a exibição blame, você pode ver o histórico de revisão linha por linha de um arquivo inteiro ou exibir o histórico de revisão de uma única linha dentro de um arquivo clicando em {% octicon "versions" aria-label="The prior blame icon" %}. Toda vez que você clicar em {% octicon "versions" aria-label="The prior blame icon" %}, verá as informações anteriores de revisão relativas a essa linha, inclusive quem realizou a alteração e quando.
|
||||
|
||||

|
||||
|
||||
Em um arquivo ou uma pull request, também é possível usar o menu {% octicon "kebab-horizontal" aria-label="The horizontal kebab octicon" %} para exibir o recurso blame do Git relacionado a uma determinada linha ou um intervalo de linhas.
|
||||
|
||||

|
||||
|
||||
{% tip %}
|
||||
|
||||
**Dica:** na linha de comando, você também pode usar `git blame` para exibir o histórico de revisão das linhas dentro de um arquivo. Para obter mais informações, consulte [Documentação sobre `git blame` no Git](https://git-scm.com/docs/git-blame).
|
||||
|
||||
{% endtip %}
|
||||
|
||||
{% data reusables.repositories.navigate-to-repo %}
|
||||
2. Clique para abrir o arquivo cujo histórico de linhas você deseja exibir.
|
||||
3. No canto superior direito da exibição do arquivo, clique em **Blame** para abrir a exibição blame. 
|
||||
4. Para ver revisões anteriores de uma linha específica ou tornar a usar o recurso blame, clique em {% octicon "versions" aria-label="The prior blame icon" %} até encontrar as alterações que você deseja exibir. 
|
||||
@@ -1,37 +0,0 @@
|
||||
---
|
||||
title: 跟踪文件中的更改
|
||||
intro: 您可以跟踪对文件中各行的更改,了解文件的各部分如何随着时间推移而发生变化。
|
||||
redirect_from:
|
||||
- /articles/using-git-blame-to-trace-changes-in-a-file
|
||||
- /articles/tracing-changes-in-a-file
|
||||
- /articles/tracking-changes-in-a-file
|
||||
- /github/managing-files-in-a-repository/tracking-changes-in-a-file
|
||||
- /github/managing-files-in-a-repository/managing-files-on-github/tracking-changes-in-a-file
|
||||
versions:
|
||||
fpt: '*'
|
||||
ghes: '*'
|
||||
ghae: '*'
|
||||
ghec: '*'
|
||||
topics:
|
||||
- Repositories
|
||||
shortTitle: 跟踪文件更改
|
||||
---
|
||||
|
||||
使用追溯视图时,您可以查看整个文件的逐行修订历史记录,也可以通过单击 {% octicon "versions" aria-label="The prior blame icon" %} 查看文件中某一行的修订历史记录。 每次单击 {% octicon "versions" aria-label="The prior blame icon" %} 后,您将看到该行以前的修订信息,包括提交更改的人员和时间。
|
||||
|
||||

|
||||
|
||||
在文件或拉取请求中,您还可以使用 {% octicon "kebab-horizontal" aria-label="The horizontal kebab octicon" %} 菜单查看所选行或行范围的 Git 追溯。
|
||||
|
||||

|
||||
|
||||
{% tip %}
|
||||
|
||||
**提示:**在命令行中,您还可以使用 `git blame` 查看文件内各行的修订历史记录。 更多信息请参阅 [Git 的 `git blame` 文档](https://git-scm.com/docs/git-blame)。
|
||||
|
||||
{% endtip %}
|
||||
|
||||
{% data reusables.repositories.navigate-to-repo %}
|
||||
2. 单击以打开您想要查看其行历史记录的文件。
|
||||
3. 在文件视图的右上角,单击 **Blame(追溯)**可打开追溯视图。 
|
||||
4. 要查看特定行的早期修订,或重新追溯,请单击 {% octicon "versions" aria-label="The prior blame icon" %},直至找到您有兴趣查看的更改。 
|
||||
Reference in New Issue
Block a user