Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
966f7428
Commit
966f7428
authored
Oct 07, 2020
by
Marcia Ramos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simple copy edit
parent
0bc03f9c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
doc/gitlab-basics/add-file.md
doc/gitlab-basics/add-file.md
+8
-7
No files found.
doc/gitlab-basics/add-file.md
View file @
966f7428
...
...
@@ -29,16 +29,17 @@ to the desired destination:
cd
<destination folder>
```
[
Create a branch
](
create-branch.md
)
to add your file to, before it's added to the master
(main) branch of the project. It's not strictly necessary, but working directly in
the
`master`
branch is not recommended unless your project is very small, and you're
the only person working on it. You can
[
switch to an existing branch
](
start-using-git.md#work-on-an-existing-branch
)
,
if you've one already.
[
Create a new branch
](
create-branch.md
)
to add your file into. Submitting changes directly
to the default branch should be avoided unless your project is very small and you're the
only person working on it.
You can also
[
switch to an existing branch
](
start-using-git.md#work-on-an-existing-branch
)
if you have one already.
Using your standard tool for copying files (for example, Finder in macOS, or File Explorer
i
n Windows), put the file into a directory within the GitLab project.
o
n Windows), put the file into a directory within the GitLab project.
Check if your file is actually present in the directory (if you're
i
n Windows,
Check if your file is actually present in the directory (if you're
o
n Windows,
use
`dir`
instead):
```
shell
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment